Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2589
Custom sorting
posted

Hello,

Is that possible to do a custom sorting for columns? Also I'd like to know if this is possible to make a sorrting for template column? I didn't find anything in documentation.

Thank you.

Parents
  • 33839
    Suggested Answer
    posted

    Hi dprosko,

    Sorting is not possible on a templated column as it is not actually bound to anything.  You could sort of hack it by handling mouse events on the header and then sorting a hidden data bound column bound to the actual data.  

    Custom sorting could be accomplished one of two ways.  Use a data source where you can set the sorting algorithm or comparer so that ascending/descending is how you want it.  Or in 11.1, there is custom data binding for the grids.  You can supply a source and the grid will bind to it without sorting, filtering, etc.  But the UI is maintained for you.

    regards,

    David Young

Reply Children
No Data