PDA

View Full Version : render for blank Datefield



porfin
17 Feb 2010, 4:28 AM
Im working in an editable grid,
Datefields are working fine for valid dates but the blanks datefields render "30/11/1899" for de Json response 0000-00-00

json reader:
{name: 'Fecha', type: 'date', mapping: 'fecha', dateFormat: 'Y-m-d' }ColumnModel:
{
header: 'Fecha',
dataIndex: 'Fecha',
width: 100,
sortable: true,
renderer: Ext.util.Format.dateRenderer('d/m/Y'),
editor: new Ext.form.DateField({
format: 'd/m/Y'
}),
hidden: true, dateFormat: 'Y-m-d'
}

Need other render or missing configuration option?

ronniem
10 Feb 2011, 12:25 AM
I'm also having this problem, someone got a suggestion?

maneljn
5 Apr 2012, 12:49 AM
same problem in grid and forms