RadTreeList - Reordering Rows

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    15 posts
    Member since:
    Jun 2010

    Posted 03 Jul 2012 Link to this post

    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.

  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 06 Jul 2012 Link to this post

    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.

    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.
Back to Top