Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Im using enablePersistence with showFilterBarOperator and experience some unpredicted behavior. When im setting the operator to 'contains' in just one column, it works. The state is persisted correctly. When im adding the same filter to a second column then when refreshing the filter resets to 'equal'. Sometimes its the first filter that gets reset sometimes is the second.


From

{

  "ignoreAccent": true,

  "enableCaseSensitivity": true,

  "showFilterBarOperator": true,

  "showFilterBarStatus": false,

  "columns": [

    {

      "field": "contact_brand",

      "uid": "grid-column2",

      "isForeignKey": false,

      "operator": "contains",

      "value": "GTA SELECT",

      "predicate": "and",

      "matchCase": true,

      "ignoreAccent": true,

      "actualFilterValue": {},

      "actualOperator": {}

    },

    {

      "field": "import_user_brand",

      "uid": "grid-column8",

      "isForeignKey": false,

      "operator": "contains",

      "value": "VALUE 1",

      "predicate": "and",

      "matchCase": true,

      "ignoreAccent": true,

      "actualFilterValue": {},

      "actualOperator": {}

    }

  ],

  "type": "FilterBar",

  "mode": "OnEnter"

}


it changes to: 

{

  "ignoreAccent": true,

  "enableCaseSensitivity": true,

  "showFilterBarOperator": true,

  "showFilterBarStatus": false,

  "columns": [

    {

      "field": "contact_brand",

      "uid": "grid-column2",

      "isForeignKey": false,

      "operator": "equal",

      "value": "VALUE 1",

      "predicate": "and",

      "matchCase": true,

      "ignoreAccent": true,

      "actualFilterValue": {},

      "actualOperator": {}

    },

    {

      "field": "import_user_brand",

      "uid": "grid-column8",

      "isForeignKey": false,

      "operator": "contains",

      "value": "VALUE 2",

      "predicate": "and",

      "matchCase": true,

      "ignoreAccent": true,

      "actualFilterValue": {},

      "actualOperator": {}

    }

  ],

  "type": "FilterBar",

  "mode": "OnEnter"

}