The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
MUMurugan 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 ).