jQuery UI Widgets Forums General Discussions How to clear filterItems in jqxGrid

This topic contains 1 reply, has 2 voices, and was last updated by  admin 1 week, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to clear filterItems in jqxGrid #112327

    trigonoah
    Participant

    Hi,

    I’m having an issue trying to clear out the filteritems in a filterrow checkedlist dropdown. I’m dynamically changing the filteritems to match the grid’s data whenever the grid is changed/updated/filtered. There’s one case where nothing is displayed in the grid, so I want to clear out all selections from the filterrow dropdown accordingly. I’ve tried the following to no avail:

    $('#jqxgrid').jqxGrid('setcolumnproperty', 'SomeColumnDataField', 'filteritems',[]);
    $('#jqxgrid').jqxGrid('setcolumnproperty', 'SomeColumnDataField', 'filteritems',new Array());
    $('#jqxgrid').jqxGrid('setcolumnproperty', 'TSomeColumnDataFieldat', 'filteritems',null);

    but none of these options seem to change the checkedlist dropdown in for the column’s filterrow. How can I go about emptying the filterItems for a column?

    How to clear filterItems in jqxGrid #112333

    admin
    Keymaster

    Hi trigonoah,

    Have you tried with the “clearfilters” method?

    $('#jqxGrid').jqxGrid('clearfilters');

    Best regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.