PDA

View Full Version : ux.grid.GridFilters not working with 'list'



sushiBMW
4 Feb 2010, 1:51 AM
Hello,
I'm using uxt.grid.GridFilters. It's all working, I can use string or numeric to search the columns and it's all working very well and fast.
But when I want to use the list type, the grid wont show up in my tab. The tab is empty. I've got a tree, and when I click on the node, a grid will be created and added to a tab.
So this is working:



var filters = new Ext.ux.grid.GridFilters({
autoReload: false,
local: true,
filters: [{
type: 'string',
dataIndex: 'initiated_by'
}]
});


But if I use this code, the grid won't show up in the tab:



var filters = new Ext.ux.grid.GridFilters({
autoReload: false,
local: true,
filters: [{
type: 'string',
dataIndex: 'initiated_by'
},{
type: 'list',
dataIndex: 'priority',
options: ['1', '2', '3']
}]
});

sushiBMW
4 Feb 2010, 6:02 PM
I don't get it why the list type is not working. This configuration works:




var filters = new Ext.ux.grid.GridFilters({
autoReload: false,
local: true,
filters: [
{
type: 'string',
dataIndex: 'status'
},{
type: 'string',
dataIndex: 'initiated_by'
},{
type: 'date',
dataIndex: 'entry_date'
},{
type: 'string',
dataIndex: 'priority'
}]
});


But if I use type list, the grid won't show up, the tab is empty.



var filters = new Ext.ux.grid.GridFilters({
autoReload: false,
local: true,
filters: [
{
type: 'string',
dataIndex: 'status'
},{
type: 'string',
dataIndex: 'initiated_by'
},{
type: 'date',
dataIndex: 'entry_date'
},{
type: 'list',
dataIndex: 'priority',
options: ['1','2','3']
}
]
});

MishaMV
16 Mar 2010, 3:04 AM
I have the same problem. Has anybody solved it?