We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Tree view - Drag/Drop does not start

Hi,

Trying to do a drag/drop on a tree view for reordering purposes with it declared like so:


The ItemDragStarting event is never called. As far as I can tell from the documentation it should work as soon as AllowDragging is set to true.

How do I get this to start dragging? 

Thanks in advance, Lee.


3 Replies

VS Vijayarasan Sivanandham Syncfusion Team February 8, 2023 06:20 PM UTC

Hi Lee Stevens,

ItemDragStarting event occurs when the drag and drop operation is starting in the SfTreeView. For more information related to the ItemDragStarting event, please refer to the below mentioned user guide documentation link,

UG Link: https://help.syncfusion.com/wpf/treeview/drag-and-drop#itemdragstarting-event

API Link: https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_ItemDragStarting

However, we have checked the reported issue with the provided details, but we are unable to reproduce the reported issue on our end. Here we have attached the tested sample and video demo. Please have a look at this. If you are facing the reported issue in any different scenario, modify the attached sample based on your scenario and share the video illustration for the reported issue. It will be helpful for us to proceed further.

Regards,
Vijayarasan S

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: Sample_And_Video_demo_f46a051f.zip



LS Lee Stevens February 10, 2023 04:54 PM UTC

Hi Vijayarasan,


I have updated our version of Syncfusion from 20.4.0.44 to 20.4.0.49 and this seems to have fixed the issue; it was the only difference I could find between our version and yours. Looks like I installed the .44 version a couple of hours before the new one, just unlucky I suppose!


I couldn't see any mention of the TreeView in the release notes mind you? 


Kind regards,

Lee



DM Dhanasekar Mohanraj Syncfusion Team February 13, 2023 01:55 PM UTC

Lee Stevens,

We regret any frustration caused by the problem with the "drag and drop functionality" in version v20.4.0.43 of our software. We are happy to announce that the issue has been identified and fixed in our next weekly NuGet release, v20.4.0.44. We will publish detailed release notes about the changes soon. You will be notified once the update is available.


Loader.
Live Chat Icon For mobile
Up arrow icon