View Full Version : Default criteria for Ext.ux.grid.filter.DateFilter

15 Oct 2010, 7:25 AM
I need to specify a default for a DateFilter as "on 10/1/2010". For a string filter we just specify "value" and "active" parameters. Not sure there's a way for a DateFilter. Please help.

var filters = new Ext.ux.grid.GridFilters({
encode: encode,
local: local,
filters: [{
type: 'string',
dataIndex: 'message'
type: 'date',
dataIndex: 'time_written',
value: '10/1/2010',
active: true
}, {
type: 'list',
dataIndex: 'event_type',
options: ['Error', 'Warning', 'Information'],
value: 'Error',
active: true,
phpMode: true
}, {
type: 'string',
dataIndex: 'location'
}, {
type: 'string',
dataIndex: 'machinename'

17 Oct 2010, 5:26 PM
I think this is the correct way to do this. I use it for my string/list filters too, but i havent tested it with a date filter.

The Ux Docs confirm this solution.


19 Oct 2010, 11:55 AM
Doesn't work. I think we need support added for the value property.