I have a grid with some calendar fields. I can edit a field, pick a date, and the date shows up in the cell. However, when I load the grid via XML, the date does not show up in the cell.
The grid column types are initialized like so :
activityGrid.setColTypes( “ro,ro,ro,ro,calendar,ro,calendar,calendar,ed,ed” );
a row of XML looks like -
Requirements Definition
A1000
Requirements Analysis
2008-06-16
2008-06-16
2008-07-03
2008-07-04
2008-07-03
0.0
100%
And the grid ends up looking like :
spintz.com/scrap/dhtmlxCalendarBug.jpg
Any idea what’s going on?
The default date format is “%d/%m/%Y"
Because different format used in your case - grid need to be correctly configured
activityGrid.setDateFormat(”%Y-%m-%d")
this command need to be executed before data loading.