Thank you for this nice introduction to the EditorGrid. The problem I noticed and that is not part of the examples is how to handle a Date format?
For instance, if you use a column of the type of: editor: new Ext.form.DateField:
Code:
columns:[{
header: 'Composants',
dataIndex: 'text',
width: 125
},{
xtype: 'datecolumn',
header: 'Date Installation',
format: 'd/m/Y',
width: 95,
dataIndex: 'dateInstallation',
editor: new Ext.form.DateField({
selectOnFocus: true,
format:"d/m/Y",
originalValue: true,
anchor: '100%'
})
}]
The problem appears after editing the column, showing a result of
Wed Aug 08 2012 00:00:00 GMT+0200 (Paris, Madrid (heure d'été))
instead of 'dd/mm/yyyy'. The problem lies probably on an other level than the EditorGrid, since the editor field is in the right format.
Have you some suggestions or experience concerning this format problem?