PDA

View Full Version : Listfilter like the office one?



Naokai
25 Aug 2009, 3:03 AM
Hi Guys,
I want to use the values that are in my store for the list filter, like this example from office:
and i don't want to add them manually :)

office screenshot:
http://87.230.13.118/list.jpg
codesnippet:

var filters = new Ext.ux.grid.GridFilters({filters:[
{type: 'numeric', dataIndex: 'id'},
{type: 'string', dataIndex: 'name'},
{type: 'numeric', dataIndex: 'price'},
{type: 'date', dataIndex: 'dateAdded'},
{
type: 'list',
dataIndex: 'size',
options: ['extra small', 'small', 'medium', 'large', 'extra large'],
phpMode: true},
{type: 'boolean', dataIndex: 'visible'}
]});

Anyone have an idea or a hint, how to realize this?, the reason why iam asking is that i can't find the api documentation about filters..

Best Regard Lars aka Naokai

httpdotcom
25 Aug 2009, 5:50 AM
http://extjs.com/forum/showthread.php?t=14503&highlight=gridFilter
The documentation lists that in the initial release, you could bind list filters to a data store.