PDA

View Full Version : Problem with date format in a grid - Internet Explorer



ambarishp
4 Oct 2011, 5:09 AM
Hi
I have added xtype 'dateformate' and format:'j-M-Y' in date column of a grid as shown below.


{header: 'Posted On', dataIndex: 'PostedOn', id: 'PostedOn', width: 75, sortable: true, xtype: 'datecolumn', format: 'j-M-Y', hidden: false,filter: {type: 'string'}}

The sorting of this date column is working in Firefox and Crome . In IE its showing error
Date.Month[..] is null or not an object.

I m passing date with 'Y-m-d' format from the server.

Please help me to fix this issue for IE.


If i remove xtype and formate attribute from the column, grid is loading but the sorting is not working on date field in all browsers .Also i m using Ext 3.3

Thanks,