PDA

View Full Version : Filterable column



sergiob
14 Sep 2012, 10:03 AM
What is correct way to make filterable Column in grid.Panel ? It seems that in 4.1 something has changed.

For example I've edited the code from page http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.Panel
(http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.Panel)
I've tried filter: true, filterable: true, I've changed the text: to 'Name1' to see that it actually updates from editable text on that page:

{ text: 'Name1', dataIndex: 'name', filter: true },

{ text: 'Name1', dataIndex: 'name', filterable: true },

{ text: 'Name3', dataIndex: 'name', filter: {type: 'string'} },

And in all of those cases filter didn't appear on column header dropdown menu.

scottmartin
14 Sep 2012, 10:19 AM
Try filtering the store:
http://www.sencha.com/forum/showthread.php?229080

Scott.