jQWidgets Forums

jQuery UI Widgets Forums Grid Customize sort

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Customize sort #55841

    gio
    Participant

    Hi,
    I need to customize the sort method for my grid.
    I already saw your example at : http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-sorting.htm, but I don’t like the idea of rewriting the comparer or the binding logic.

    I’ll try to explain my problem, maybe you can help me to find out a better solution.
    Once a “sort” event occurs I have to calculate a specific value based on the sorted column field.
    Then sort functionality should work on the new calculated field.

    A good idea could be to use a kind of “onbeforesort” event, but I did’t see any such event in the documentation.
    Or maybe there is some way to override sort but still using the base sorting method in the library. (but how I can achieve this?)

    Thanks in advance for your help.

    Giovanni

    Customize sort #55907

    gio
    Participant

    Any suggestion? 🙁

    Customize sort #55909

    Peter Stoev
    Keymaster

    Hi Giovanni,

    You can use either the built-in sorting or write your own by creating a custom sorting comparer as shown in the Sorting demos. That is what we can suggest you.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.