EXTjs gridfilter: How to clearfilter without reloading store?

后端 未结 4 1828
孤街浪徒
孤街浪徒 2021-01-16 02:03

In extjs GridFilters, is there a way to clear the filters without reloading the store?
This is the rquirement:
There is a grid(#1) and another grid(#2) below the gri

4条回答
  •  迷失自我
    2021-01-16 02:18

    After some Firebug stepping, I found this works quite well.

    var store = this.getStore();
    store.remoteFilter = false;
    store.clearFilter();
    store.remoteFilter = true;
    store.filter(...);
    

    remoteFilter does not seem to be a documented property, but it will suspend xhr calls while it's set to false.

    When you set remoteFilter to false, when clearFilter() is called, the load() function is stepped over.

提交回复
热议问题