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

[Solved] Changing the order of rows based on input

4 Answers 141 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.
Lauri
Top achievements
Rank 1
Lauri asked on 30 Aug 2011, 01:32 PM
Hi,

I'm currently taking the ASP.NET MVC Grid into use in a project I'm working on. We have a functional requirement that demands that customers must be able to change the order of the items displayed on the grid (ie. move rows up and down). The new order must then be persisted.

I see two ways of implementing this; drag-and-drop (better) and up/down arrows (clunky, but does the job). Having read through the examples and searched the web, I still couldn't find an example on how to code either method with the ASP.NET MVC Grid. The arrows can obviously be implemented as custom commands, but I kind of expected this kind of functionality to be already available, since the RadControls for ASP.NET Ajax and the ASP.NET MVC TreeView both support this. Am I missing something?

4 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
answered on 30 Aug 2011, 10:59 PM
The customer can already change the order of the columns of the grid. Please see the example at http://demos.telerik.com/aspnet-mvc/grid/columnreordering.
Yours Truly,
Bob
0
Lauri
Top achievements
Rank 1
answered on 31 Aug 2011, 06:40 AM
Hi Bob,

I've also noticed the possibility to re-order the columns in the grid. However, what I'm looking for is the ability to move rows up and down, not change the order of columns.

As said, this is certainly possible to implement, but what I'm interested in is whether I need to do a custom implementation from the scratch or if this kind of functionality is already provided by the grid itself. The optimal solution would be to have the same drag & drop functionality you demonstrated with columns, but for moving rows up and down.
0
Robert
Top achievements
Rank 1
answered on 17 Oct 2012, 03:08 PM
Did you get an answer for this because I have the same requirement.

Rob
0
Garðar Valur
Top achievements
Rank 1
answered on 24 Nov 2012, 05:30 PM
Same here, has anyone got the answer to this?
Tags
Grid
Asked by
Lauri
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Lauri
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Garðar Valur
Top achievements
Rank 1
Share this question
or