PDA

View Full Version : Empty dates



Achim74
10 Jul 2009, 3:45 PM
How can I display empty dates from MySql "0000-00-00" als empty columns in a grid ? They get rendered as 30/06/1900.

Record definition is:


name: 'mydate',
type: 'date',
dateFormat: 'Y-m-d'


Grid column:


xtype: 'datecolumn',
header: 'mydate',
dataIndex: 'mydate',
format: 'd.m.Y',
width: 100,
sortable: true,
groupRenderer: Ext.util.Format.dateRenderer('M y'),
editor: {
xtype: 'datefield',
allowBlank: true
}
Thank you.

djSeverin
11 Jul 2009, 12:03 AM
This post may help somewhat. The idea being to extend the base class to handle MySQL's way of doing things.

http://extjs.net/forum/showthread.php?t=39257