jQuery UI Widgets Forums Grid Filter Row & Clear Filters not in sync?

This topic contains 2 replies, has 2 voices, and was last updated by  sabbott 9 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Filter Row & Clear Filters not in sync? #63597

    sabbott
    Participant

    I noticed an issue where after selecting “null” in a column filter, then clicking our “Refresh” button – which calls: $(‘#jqxgrid’).jqxGrid(‘clearfilters’);, it appears the filter is not really cleared. Thus, when you filter on another column, the original column filter is still applied.

    I have replicated this issue in this JSFiddle: http://jsfiddle.net/ttsabbott/t74mv99c/1/
    Steps to reproduce:
    1. Select “null” in the Product column filter
    2. Click “Clear filters”
    3. Enter 5 in the Quantity column filter

    You will see that nothing is returned even though there are rows with Quantity = 5.

    That is because the “null” filter of Product has been re-applied.

    Please advise.

    Note: I created this example based upon this JSFiddle: http://jsfiddle.net/jqwidgets/4DMBV/

    Filter Row & Clear Filters not in sync? #63614

    Peter Stoev
    Keymaster

    Hi sabbott,

    Ok. Thank you for the information. They are in sync. The only problem is that “clearfilters” does not reset the DropDownList’s selection.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Filter Row & Clear Filters not in sync? #63658

    sabbott
    Participant

    Hi Peter,

    First, thank you for your response.

    My use of the term “sync” may have not been accurate. The problem is that the clearfilters method doesn’t clear/reset the filter row. However, if you take my JSFiddle example and set showfilterrow = false, then follow the same steps as before, you will see that it works as expected. You can see that the drop down for Product (within the column title) has been reset to contains, instead of null. However, in the filter row, it stays as null. So in my opinion, the clearfilters needs to also clear out the filters in the filter row.

    Please advise.

    Thank you,
    Steve

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

You must be logged in to reply to this topic.