jQWidgets Forums

jQuery UI Widgets Forums Grid Synchronizing sort between many jqxgrids

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Synchronizing sort between many jqxgrids #103185

    mrallaris
    Participant

    We have 4 jqxgrids displayed that have the same columns. When someone makes a sorting change, is there a way to link the jqxgrids so that any sort changes to one table update the sort for them all? I.E if they sort desc by “Customer” in one, it does the same in all, etc…

    I got it working having 1 grid act as the “master”, and using it’s sort event handler to update the sort on the others. But when i try to do this multi-directionally it gets into an infinite loop of sort events as they are all updating each other. Is there a way to do this so that when programatically updating the sort on a grid it doesn’t trigger the sort event handler?

    Synchronizing sort between many jqxgrids #103233

    Martin
    Participant

    Hello mrallaris,

    You can check if a grid isn’t already sorted by the same column and in the the same direction before sorting it.
    In this way, you will avoid entering an infinite loop.
    Here is an Example.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.