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

[Solved] Drag and Drop Rows when using objectdatasource

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 02 Jul 2009, 07:58 PM
I have a radgrid that I create dynamically with a custom template, I construct my gird in my OnInit. This is working great. Now I would like to enable the drag and drop functionality, but I am having trouble finding a reference that uses a objectdatasource for the grid. I would like to just reorder rows within the same grid. Can anyone point me in the right direction.
Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 07 Jul 2009, 11:06 AM
Hello Tim,

You can adopt the implementation from the following online demo of RadGrid:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

to use ObjectDataSource as a middle tier instead of using NeedDataSource binding. The idea is to reorder the items in the underlying source (using the event driven mechanism of the control) to reflect the UI changes in the grid when the end user performs drag and drop operation.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or