-
10 Aug 2012 7:46 AM #1
Answered: ExtJS 4.0.7 Grid filtering
Answered: ExtJS 4.0.7 Grid filtering
HI,
I am using Extjs 4.0.7 Grid.
I want to put a filter on a column.
Can anyone put a sample code for the same as i am not able to find any plugin for that.
Thanks
-
Best Answer Posted by scottmartin
examples/ux/grid/FiltersFeature.js
Scott.
-
10 Aug 2012 10:59 AM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,185
- Vote Rating
- 194
- Answers
- 433
How do you want to filter the grid?
edit/Button, column editor at top of each column, menu selection?
Scott.
-
11 Aug 2012 8:35 AM #3
Here is a very basic and small filter, I hope you can use it and learn how to do more complex filters.
Code:listeners:{ change:function(el,rec,oldrec){ var panel = Ext.getCmp('showTrackingLogs-id'); panel.getStore().filter([{ property:'descripcion', value:rec }]); if(rec==""){ panel.getStore().clearFilter(); } } }____________________________________
do not make install, just compile it.!!!
--------------------------------------------------
//*************k4m1k4z3************\\
-
13 Aug 2012 1:24 AM #4
Hi Scott,
I wanted a filter (on string) under the menu items of a specific column header as shown on the sample and demos page of Sencha. Just that i will put a dropdown in place of textfield under submenu of filter.
The problem is that i indirectly refer the Library of ExtJS rather than having it all in my proj.
And i am unable to find the 'Ext.ux.grid.FiltersFeature'.
-
13 Aug 2012 6:12 AM #5Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,185
- Vote Rating
- 194
- Answers
- 433
examples/ux/grid/FiltersFeature.js
Scott.


Reply With Quote