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
765
call default sort func in my customSortFunc
posted

Hi experts,

I'm using customSortFunction here, http://www.igniteui.com/help/api/2013.2/ui.iggridsorting#options:customSortFunction, but I dont want to write everything. Is there a way to call it's default sort function?  Say my grid datasource is a array of student object, each student has id, name, ***. And for student whose id equals to 1, no matter which column is sorted, the student 1 always stay on top of the grid. What come to my mind is check whether obj's id is 1, if it's 1, when asc, return -1, when desc, return 1. And for students whose id are not 1, I want to call default sort function. But I don't see a way to call the default sort func. Please help!

Parents
  • 7435
    Offline posted

    Hello Sathya,

     

    I am discussing this matter with the grid's development team for their input.

    I will have more information for you when I hear back from them.  If you have any further questions or concerns with this issue, please let me know.

Reply Children
No Data