-
4 Jun 2011 7:31 AM #1
GridFilter: how to explicitly set the filter values
GridFilter: how to explicitly set the filter values
Hi,
is it possible to set the values of some filter field using some function? I mean something like:
I would like to invoke filtering manualy without user interaction for example after page load.Code:grid.features.filters.filter('id',300);
-
9 Aug 2011 12:22 AM #2
Still looking for the help.
I Can find it anywhere. Im glad for any help
-
9 Aug 2011 6:04 AM #3
There is the filter method. You can add the filter in the afterRender event of the gridPanel or maybe in the store load event.
I use this in the grid panel
Code:Ext.define('Webdesktop.view.administration.controllers.List', { extend : 'Ext.grid.Panel', //... afterRender: function() { var me = this; me.callParent(); me.getStore().filter( new Ext.util.Filter({ filterFn: function(item) { return item.data.status == 0; } }) ); } });
-
10 Aug 2011 7:31 AM #4
-
21 Sep 2011 6:39 AM #5
Hello again. Unfortunately that piece of code doesn't do exactly what I wanted it to. I would like to be able to set default filter options which then would be visible as if the user has set them himself (by clicking on the column dropdown and enabling the filters there). This solution did filter the grid data, but the UI did not show the respective filter as active. I have gone through the docs but did not find a way to achieve this.
-
22 Sep 2011 3:44 AM #6
this ux in version 3x had a method setFilterData() that is no longer available in it's 4.x incarnation. I'm trying to achieve the same thing as you but have failed for now.
-
13 Oct 2011 7:46 PM #7
Any update on this, Can we use columnheader menu to filter in Ext JS 4
Any update on this, Can we use columnheader menu to filter in Ext JS 4
I have to implement a basic filter via the Column header menu on my grid. I am unable to find Ext JS 4 examples for the same, any help much appreciated!!
Sencha docs seem to suggest to only use Store to filter and not grid (via the Column header menu). But I want the end user to key the filter values and not directly filter the store.
-
14 Oct 2011 2:01 AM #8
It's all in the example
http://docs.sencha.com/ext-js/4-0/#!...ter-local.html
or a custom plugin
http://www.sencha.com/forum/showthre...d.HeaderFIlter
-
18 Oct 2011 8:25 AM #9
Any update?
Any update?
I am also trying to achieve this, any update on this one?
-
25 Apr 2012 5:31 AM #10


Reply With Quote