This is a migrated thread and some comments may be shown as answers.

RadTreeList - Reordering Rows

1 Answer 77 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 03 Jul 2012, 07:16 PM
Is it possible to re-order row items via drag-n-drop within a RadTreeList, without using a SQL DataSource?  Currently, I bind using a generic list and would like to allow the user to re-order the RadTreeList before saving.

Thanks,
Patrick 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 06 Jul 2012, 02:38 PM
Hello Patrick,

You can do reordering of RadTreeList with any kind of datasource, the thing is that if you do not use datasource controls set up for automatic updates, you need to reorder the underlying datasource manually.
You should intercept the server-side ItemDrop event of the control, and based on the infromation provided through the event arguments, reorder the datasource to reflect the changes.

Regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeList
Asked by
Patrick
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or