开发者

MvcConrib Grid's Sortable property don't seems to to do any effect

开发者 https://www.devze.com 2022-12-19 13:29 出处:网络
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?You need to use GridSortOptions and call the .Sort(YourMod

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消