简体   繁体   中英

Kendo grid custom sort

I'm using a template to display a link in a grid column. The field of that column is bound to a JSON object which has a property 'label' and a property 'link'.

It renders correctly but filtering that column is impossible now because kendo doesn't know how to filter that object. Also sorting doesn't work anymore on that grid because of the same reason.

Is there an easy way to implement custom filter and client side sorting logic for that column?

I believe if you set the field property to the field you want to use for filtering/sorting, and then use a template to display another column or a formatted result, that should give you what you want.

Depending if you're using MVC helpers or JavaScript or something else I could provide a sample for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM