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

Drag and drop of rows in Self-referencing grid with changing in database

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stanley Marchon
Top achievements
Rank 1
Stanley Marchon asked on 19 Nov 2008, 05:36 AM
I am working with Self-referencing grid display 3 column in the grid. now i want to drag and drop between rows it can be  root or  child with changes in database.  initially i was doing it with tree with one column from db and it was working fine but now i have to display 3 column from database i think it is not possible in tree view. so trying in grid but not able to drag n drop with database changes.

Thanks for your help in advance. 

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 Nov 2008, 02:46 PM
Hi Stanley,

You can perform the database update on RowDrop event. You can get there the dragged item id and destination index and execute database update query. Then rebind your grid and the reordered grid should be displayed.

Best wishes,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Stanley Marchon
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or