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
close icon

To save nodes order in a tree view

Sir/Madam

How to save the order of child nodes in a parent node when drag and dropped.

Here is the problem Iam facing.
I have a TreeView with only 1 parent node called 'Root' in which 4 child nodes as 'A','B','C' and 'D' in the same order. I can drag 'D' and drop above node 'B'. I works fine but when saved to data base and retrived the order does not changed, it remains as A, B, C, D.
Please help me over this.

regard
Praveen

1 Reply

MU Murugan Syncfusion Team December 18, 2006 03:29 PM UTC

Hi Praveen,

Thanks for choosing Syncfusion products.

Please store TreeNodeAdv.Index value in the database. It gives the position of the TreeNodeAdv in the parent's tree node collection. Please load the tree node in the order of Index value ( Ascending order ).

Please let me know if the issue is resolved.

Regards,
Murugan P.S

Loader.
Live Chat Icon For mobile
Up arrow icon