Question

I need a way to generate the header texts in the grid as sortalbe link.

Do I need to use custom renderer to get this behavior?

Was it helpful?

Solution

You need to use GridSortOptions and call the .Sort(YourModel.GridSortOptions) method on the grid and then handle the OrderBy in your controller action.

See this link: http://www.jeremyskinner.co.uk/2010/03/14/mvccontrib-grid-part-6-sorting/

Thanks,

Hal

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top