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

Reordering rows using drag and drop and autosaving the order to the database

7 Answers 370 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ritika Gupta
Top achievements
Rank 1
Ritika Gupta asked on 10 Feb 2010, 08:01 AM
Hi,

My project involves displaying products in RadGrid. I would like to reorder rows using RadGrid's drag and drop feature wherein after reordering the row, the order should be autosaved to the database.

Is this possible and if yes, then how? I'm looking for the code on an urgent basis. Any help on this is highly appreciated.

Many thanks,
Ritika

7 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 10 Feb 2010, 04:32 PM
If you are looking to save the Grid's current layout you could look into this documentation article which shows you how you can approach the saving aspect of your potential implementation.
0
Ritika Gupta
Top achievements
Rank 1
answered on 11 Feb 2010, 06:03 AM
Hi Schlurk,

Thanks for your reply, However this isnt what i was looking for.

 I need to know if there is a way in RadGrid where i can drag and drop a row to reorder and then if this new order can be autosaved to the database directly.

Any code / documentation on this will be highly appreciated!

Many Thanks,
Ritika


0
Iana Tsolova
Telerik team
answered on 16 Feb 2010, 02:40 PM
Hi Ritika,

Please review this online demo for more information on how you can implement RadGrid items drag and drop.

Give a try and let me know if any issues arise.

Regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Saxon
Top achievements
Rank 1
answered on 23 Nov 2015, 09:19 AM
The _RowDrop event seems not working when dragged to Trash.
0
Saxon
Top achievements
Rank 1
answered on 23 Nov 2015, 09:32 AM
sorry, I get confused before and now figured out how demo work... Pls delete this reply
0
Diego
Top achievements
Rank 1
answered on 14 May 2019, 07:22 PM

Hello Iana,

This link is currently not working, is there any current example of column reordering and being able to save the new configuration somewhere else?

Thank you.

0
Vessy
Telerik team
answered on 17 May 2019, 08:35 AM
Hi Diego,

The demo previously provided by Iana can be accessed via the following link:
https://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Ritika Gupta
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Ritika Gupta
Top achievements
Rank 1
Iana Tsolova
Telerik team
Saxon
Top achievements
Rank 1
Diego
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or