jQWidgets Forums

jQuery UI Widgets Forums Grid Filter- reload data- unfilter

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Filter- reload data- unfilter #33188

    morgenweck
    Participant

    I have a Grid with 10 rows and 15 columns. When a person clicks on a row the Grid is filtered to show only the row that the person is interested. I have a couple of other buttons that will take values supplied by the end user and go back to the server (JSON) and repopulate the grid with the new data and keep the original filter in place. The filter is based upon the value in the first cell. Once the grid is repopulated I only see the selected row with the new values but if I click a button that should remove the filter nothing happens. If the remove filter (clearfilters) is applied before the new data is applied everything works fine but if the new data is applied then nothing. I know that it must be a way around this and I know that I must be missing a couple of steps. Do I need to save the filter and then reapply it?

    Thanks

    Filter- reload data- unfilter #33189

    morgenweck
    Participant

    Additional Information:
    If I save the filter using var filtersinfo = $(‘#jqxGrid’).jqxGrid(‘getfilterinformation’);

    How can I reapply it? Can I use $(‘#jqxGrid’).jqxGrid(‘addfilter’,?????)

    Filter- reload data- unfilter #33198

    Peter Stoev
    Keymaster

    Hi morgenweck,

    To repopulate the Grid you can set the “source” property to a new DataAdapter. Then to apply a filter, you can use that approach: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering.htm?arctic – see the code in the “ready” callback.

    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.