PDA

View Full Version : Ext.ux.grid.filter.ListFilter for null values?



shsu
11 Mar 2011, 11:50 AM
Hello,

I am using the Ext.ux.grid.GridFilters (from version 3.3.1), one of the filters is a Ext.ux.grid.filter.ListFilter that I'd like to display a list of options for filtering on a column in my grid. Does anyone know if there is a way to filter on the null value for a dataIndex that is a ListFilter? Thank you!


var filters = new Ext.ux.grid.GridFilters({

local: true
,filters: [
{
type: 'list',
dataIndex: 'col1',
options: [
// add null option?
'option1',
'option2']
}]
})

daiei27
20 May 2011, 1:54 PM
I just encountered the same issue. It's weird because when I try to use '' as an option, I see the filter sending a request with a value related to an Ext identifier:

[{"type":"list","value":["ext-record-21"],"field":"result"}]
Anyone have any ideas of how to use a null or empty string option with filters?

daiei27
27 May 2011, 6:42 AM
Anybody?