This is a migrated thread and some comments may be shown as answers.
How to specify default sort order
0 Answers 53 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jann
Top achievements
Rank 1
Jann asked on 15 Dec 2010, 04:32 PM
How can you specify a default sort order in such a way that in case the user changes the sort order and then edits a field, the sort order is not returned to the default order?

I use server binding and currently just specify 

 

.Sortable(s => s.OrderBy(o => o.Add(b => b.Name)))

When editing something my controller simply redirects to my view which then of course is reverted to sorting by name. How can I retain the user specified sort order?

On another note: The grid does not seem to display the records in the order they are delivered from the database when no sorting option is applied, why is that ?
Tags
Grid
Asked by
Jann
Top achievements
Rank 1
Share this question
or