jQWidgets Forums

jQuery UI Widgets Forums Grid Filtering issues when using filterrow and addfilter

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

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

  • gediminas
    Member

    Hello!

    I have a server-side filtered grid that is using filter row and the API – addfilter and removefilter to manage filters. Consider the following scenario:
    1. I add a filter using:
    var problemFilterGroup = new $.jqx.filter();
    var problemFilter = problemFilterGroup.createfilter(“booleanfilter”, true, “equal”);
    problemFilterGroup.addfilter(1, problemFilter);
    this.gridElement.jqxGrid(“addfilter”, “problem”, problemFilterGroup);
    this.gridElement.jqxGrid(“applyfilters”);

    2. I apply a filter using the filter row.

    3. I remove the firstly applied filter:
    this.gridElement.jqxGrid(“removefilter”, “problem”);
    this.gridElement.jqxGrid(“applyfilters”);

    4. I add another filter via the filter row and the filter removed in step 3 comes back.

    jqWidgets v3.0.2
    Google Chrome
    jQuery v1.9.1


    Peter Stoev
    Keymaster

    Hi gediminas,

    That could be related to your server filtering implementation or Async Calls so your new filter could be applied before the old one as the calls are async. Make them Sync if you do such custom filtering.

    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.