jQWidgets Forums

jQuery UI Widgets Forums Grid Reset Sorting and Filtering with one server call

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 11 months ago.

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

  • mattcash
    Participant

    I am being asked to add a button to a screen that, when pressed, will remove all of the filtering and sorting the user has done during the session.

    I understand that I can call the ‘clearfilters’ and ‘removesort’ functions through jqxGrid. My issue is that we discovered this causes two separate calls to the server.

    Is there a way for me to call for a clearing of both sorts and filters that would result in a single call to the server?

    Thanks!


    Hristo
    Participant

    Hello mattcash,

    You could try to use updatebounddata method of the Grid and it will update your data as it is in the database.
    $('#jqxgrid').jqxGrid('updatebounddata');

    Best Regards,
    Hristo Hristov

    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.