jQWidgets Forums

jQuery UI Widgets Forums Grid Event sort

Tagged: 

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Event sort Posts
  • Event sort #48959

    faiverson
    Participant

    I’m using this event. When I check the arguments I see that:
    event.sortinformation.sortcolumn is telling me which column trigger the sort event. But if the sort is not ascending or descending this variable is null and I cannot know wich row send me that.
    To check the ‘sort’ I have event.sortinformation.ascending and event.sortinformation.descending so I imagined that event.sortinformation.sortcolumn should always return the column name. Is it a bug?

    Event sort #48973

    Peter Stoev
    Keymaster

    Hi faiverson,

    null means that the sorting is removed. That’s how it should work. Example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/sorting.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Event sort #49035

    faiverson
    Participant

    Ok, and how can I know wich column remove the sorting?

    If I have more than one column I want to know wich one doesn’t have sorting anymore to run a callback.

    Is there any way to know?

    Event sort #49038

    faiverson
    Participant

    So far I can see the sort event doesn’t have a way to know what column fired the sort!?

    Event sort #49049

    Peter Stoev
    Keymaster

    Hi faiverson,

    In the demo that I pointed you – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/sorting.htm?arctic is demonstrated how to get the Sort Column. If the Sorting is removed, that means that there’s no Sorting Applied to jqxGrid so it does not matter which one was the sort column in this case, because there is no Sorting applied to any column anymore.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.