Completed
Last Updated: 23 May 2019 13:20 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.527)
Theo
Created on: 29 Apr 2019 15:14
Category: TreeView
Type: Bug Report
1
RadTreeView: scroll mouse wheel while dragging node not working

Afternoon

 

We have a RadTReeView that we drag nodes around to reorder within the same treeview.

There are about 2000 nodes in the tree that is a self referencing data bound and goes about 15 levels deep at some parts of the tree

When we click left mouse down (keeping it down) to drag and drop reorder a node, using the mouse wheel to scroll the tree up or down does not work anymore

We want to for instance drag a node from a location to another location outside the current view, using the mouse wheel to navigate the tree view up and down. This used to work, but not after upgrading to the new 2019 telerik.

Is there a tree view control option that needs to be toggled for this to work?

Thank you

Theo

4 comments
Theo
Posted on: 03 May 2019 09:15

Hi Dess

I already implement a fully customized treeview, implementing the CustomTreeView, CustomTreeViewElement, CustomTreeNodeElement, CustomContentElement, CustomDragDropService, CustomTreeViewCancelEventArgs, etc.

Adding 

Protected Overrides Sub SetHintWindowPosition(ByVal mousePt As Point)
End Sub

to the CustomDragDropService resolved the issue.

thank you

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 03 May 2019 05:17
Hello, Theo,     

The provided detailed explanation is greatly appreciated. It helped me to understand better the precise case. Following the described steps, I was able to replicate the inability to scroll with the mouse wheel while dragging a node. This was broken in R1 2018 SP1 (version 2018.1.220) while addressing the following item: https://feedback.telerik.com/winforms/1372484-fix-radtreeview-drag-hint-flickers-while-dragging-a-node

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to create a custom TreeViewDragDropService as follows:  

Class CustomDragDropService
Inherits TreeViewDragDropService
 
    Public Sub New(ByVal owner As RadTreeViewElement)
        MyBase.New(owner)
    End Sub
 
    Protected Overrides Sub SetHintWindowPosition(ByVal mousePt As Point)
    End Sub
End Class
 
Class CustomTreeViewElement
Inherits RadTreeViewElement
 
    Protected Overrides ReadOnly Property ThemeEffectiveType As Type
        Get
            Return GetType(RadTreeViewElement)
        End Get
    End Property
 
    Protected Overrides Function CreateDragDropService() As TreeViewDragDropService
        Return New CustomDragDropService(Me)
    End Function
End Class
 
Class CustomTreeView
Inherits RadTreeView
 
    Protected Overrides Function CreateTreeViewElement() As RadTreeViewElement
        Return New CustomTreeViewElement()
    End Function
 
    Public Overrides Property ThemeClassName As String
        Get
            Return GetType(RadTreeView).FullName
        End Get
        Set(value As String)
            MyBase.ThemeClassName = value
        End Set
    End Property
End Class

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Theo
Posted on: 02 May 2019 13:37

Hi

It seems that you are moving your mouse cursor to the edge of the tree and then that causes the up and down scroll, which is working as expected.

The issue is while having a node "grabbed" also simultaneous, while holding down the mouse button, scrolling the mouse wheel so that the tree navigates up and down.

This used to work, but stopped after telerik version upgrade.

Note that I would appreciate it if a remote session could be scheduled so that this can be seen and investigated

Thank you

Theo

 

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 30 Apr 2019 05:45
Hello, Theo,     

Following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the specified version. I have attached my sample project. Feel free to modify it in a way to reproduce the experienced issue and get back to me with it so I can investigate the precise case. Thank you in advance. 

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.