0

I am using Extjs 6 and I want to put filters on my grids. I used gridfilters plugin but I can't found the buildQuery method that I have used on Extjs 4. How can I replace it? this is the code in Extjs 4.2.2:

features: [{
            ftype: 'filters',
            encode: false,
            local: false,
            sorters: '',
            filters: this.createFiltres(),
            buildQuery: this.bQuery,
          }]

I added plugin: 'gridfilter' but it's not working. I need the buildQuery.

piet.t
  • 11,718
  • 21
  • 43
  • 52
Y.Coding
  • 109
  • 3
  • 15
  • If you remove parenthesis after `this.createFilters`, maybe `buildQuery` will work? – Thevs Dec 19 '16 at 15:16
  • I used this code on 4.2.2 version. It is not working anymore. in Extjs 6, the plugin 'gridfilters' replace 'Ext.ux.feature.Features'. I want to how can I replace buildQuery in Extjs 6? – Y.Coding Dec 20 '16 at 11:53
  • I used this code on 4.2.2 version. It is not working anymore. in Extjs 6, the plugin 'gridfilters' replace 'Ext.ux.feature.Features'. I want to know how can I replace buildQuery in Extjs 6? I refer to this link: https://www.sencha.com/forum/showthread.php?302253-Ext-JS-Filter-Add-datatype-of-Property-to-Filter-params-in-URL I want to know please how to change the parameter 'filter' in query parameter to 'id_equal' (the id is the name of the column I searched with. – Y.Coding Dec 20 '16 at 11:59
  • Unfortunately there is no such method (buildQyery) in the actual implementation of the gridfilters plugin. The plugin just works with store filters. One way to solve your problem might be to handle this in the listener for grid's filterchange event.. – scebotari66 Dec 22 '16 at 13:18

0 Answers0