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

How to modify TreeViewAdv's Drag and Drop

I need to modify three things with the TreeViewAdv's Drag and Drop but am unsure how to do so. My TreeViewAdv has only two levels of nodes, Parent and Child, which are represented by different classes.

I need to:
1) disallow users from dragging a Parent into another Parent but allow reordering Parents

2) disallow users from dragging Child nodes onto the Parent level but allow reordering Children within the same Parent and dragging Children into other Parents

3) choose between moving or copying a Child node to another Parent or canceling the entire drag/drop action based on a user choice

Thanks!

7 Replies

KR Karthick Ravichandran Syncfusion Team February 25, 2013 11:33 AM UTC

Hi Elysia,

 

Thanks for using Syncfusion Products.

 

We have prepared a sample based on your requirement “TreeViewAdv Drag and Drop” and you can find the sample from the attachment.

 

Please let us know if this helps.

 

Regards,

Karthick



CS_3052008d.zip


FR Francis Rouleau November 18, 2013 05:35 PM UTC

I need very similar. I can't download the file i get an access denied.

I need to have drag drop reodering on the same level for a specific heriachical template Child of a Child

wha i mean is : Parent -> Child - SubChild -> SubSubChild -> ....
I have heriacical tmeplate all over the place and am looking to reoder Child or type(MyClassA) to be drag drop sortable inside it's parent ONLY.


DK Dinesh Kumar P Syncfusion Team November 26, 2013 11:31 AM UTC

Hi Francis Rouleau,

Sorry for the delay.

Please find the requested sample to achieve Drag and Drop functionality in TreeViewAdv from the below attachment.  

Please let us know if the sample meets your requirement.

Thanks,
Dinesh Kumar P


TreeViewAdv_Sample_480a7328.zip


SI Sigrist October 12, 2015 03:13 AM UTC

could you please fix the link -  it's broken
thx



SI Sigrist October 12, 2015 03:19 AM UTC

solved - clicking on the link >error message (zip)
save as - worked

IMO - browser related

Attachment: error_369e6cd9.zip


SI Sigrist October 12, 2015 03:21 AM UTC

Nope - the file is corrupted !
Seems like there's a problem with both example files.



MS Mariappan S Syncfusion Team October 12, 2015 11:45 AM UTC

Hi Sigrist,

Sorry for the inconvenience caused

We have updated the sample for drag and drop functionality in our TreeViewAdv.

Please download the sample from the below link.

Sample link: TreeViewSample

Regards,
Mariappan S.

Loader.
Live Chat Icon For mobile
Up arrow icon