jQWidgets Forums

jQuery UI Widgets Forums Grid Strange Grid Filter behavior

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Strange Grid Filter behavior #52369

    assaf.frank123
    Participant

    Hi,

    When the grid has finished loading I add a filter using –

    $(“#jqxkeywordsgrid”).bind(‘initialized’, function () {
    var filtergroup = new $.jqx.filter();
    var filtervalue = ‘ACTIVE’;
    var filter = filtergroup.createfilter(‘stringfilter’, filtervalue, ‘EQUAL’);
    filtergroup.addfilter(0, filter);
    $(‘#jqxkeywordsgrid’).jqxGrid(‘addfilter’, ‘status’, filtergroup, true);
    });

    There are 2 problems with only this filter –
    1. Even though the grid is filtered properly when I click on the filter dropdown (as if I wish to change it) – all the values are checked and
    not only the one I set as the filter.
    2. When changing a different filter via GUI – only this one gets reset (while I was expecting to add a second filter to filter the grid a
    second time)

    Thanks.

    Strange Grid Filter behavior #52378

    Peter Stoev
    Keymaster

    Hi assaf.frank123,

    When you apply a filter through the UI, the other filters which you applied to the column through the API would be removed and only the one which you set through the UI will stay.

    Best Regards,
    Peter Stoev

    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.