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

Reordering Rows

2 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vipin
Top achievements
Rank 1
Vipin asked on 13 Jun 2012, 02:09 PM
I'm using Telrik grid for MVC3 in one of my website. I want to have feature for reordering of rows in grid.So that I can move my rows up and down or using drag and drop I can reorder the rows in the grid.
Can you please provide me the solution or sample code for ASP.Net MVC3 for razor?

Thanks,

Vipin

2 Answers, 1 is accepted

Sort by
0
AspenSquare
Top achievements
Rank 1
answered on 23 Aug 2012, 03:16 PM
Did you ever find out how to do this?
0
Faulenzer
Top achievements
Rank 1
answered on 29 Aug 2012, 09:10 PM
Hi,

To reorder row, you could tag them with Id of dataitem. Second, in jquery, use sortable() in order to enable row drag and drop.
Add event in sortable() to get Id of dragged row, and the Id of next row. With two Ids you will be able to make ajax call and refresh grid.

You can see an example here : http://www.mackmathieu.com/post/2012/08/29/Telerik-extensions-for-MVC-Sortable-rows.aspx

Tags
Grid
Asked by
Vipin
Top achievements
Rank 1
Answers by
AspenSquare
Top achievements
Rank 1
Faulenzer
Top achievements
Rank 1
Share this question
or