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

Maintaining column sort order

0 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Jul 2012, 12:19 PM
Hopefully there is a simple answer to this, but I can't seem to find much about it.

I have an MVC grid Ajax-bound, working nicely, with single column sorting.  I can remember the selected row and reset it very nicely on grid redisplay.

However, I'd like to be able to remember the currently sorted column too, so that when I post a request to the server to change the data displayed, I can retain the previous column sort order in the updated display.

I can't see any client-side functions to get or set column sort status, nor anything to handle it server side.  Poking around in the browser script debugger, I could not see where the column sort orders are held - though I don't spend too  long on it. 

Am I missing something obvious?

Cheers
Mark

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Share this question
or