PDA

View Full Version : grid rowediting date field problem



extremed
8 Jan 2012, 1:22 PM
Hi

before row editing date looks like this

30543
after edit

30544

any idea how to prevent this happening?

Farish
8 Jan 2012, 11:42 PM
try this in your column:


editor: {
xtype: 'datefield',
format: 'j/n/Y'
},
renderer : Ext.util.Format.dateRenderer('d/m/Y')

where you can set the format e.g. j-n-Y for date-month-year instead of j/n/Y and the renderer controls how the date will be displayed.

Regards,
Farish