View Full Version : RowEditor changescell format on editing

Michael J.
27 Jan 2011, 7:57 AM
Im using RowEditor as in example

One of the fields in my store hase date format

fields: [
name: 'CREATE_TIME',
type: 'date',
dateFormat: 'Y-m-d H:i:s'
...this is the format that srever returns, but I want to display in grid another format,
so I have render in grid column

header: "Created",
dataIndex: 'CREATE_TIME',
width: 100,
renderer: Ext.util.Format.dateRenderer('d/m/Y H:i:s'),
sortable: true
also this grid has a RowEditor as a plugin.
For example the cell has a displayed value
`26/01/2011 19:10:19`
But when row is double-clicked and editing is started I see in this field sudenly
`Wed Jan 26 2011 19:10:19 GMT+0300`

Why is it happenning?
how can I force this field to stay unchanged on editing?