Aug 21, 2009, 11:47 AM
date time field in grid panel
Dear all,
I am using the grid panel.
The object data source of the store of the grid has a date time column.
From the data source side, this column display the correct date & time.
But the grid panel displays the date only.
I used the following to create the field in the store
I am using the grid panel.
The object data source of the store of the grid has a date time column.
From the data source side, this column display the correct date & time.
But the grid panel displays the date only.
I used the following to create the field in the store
<ext:RecordField Name="Date" Type="Date" DateFormat="Y-m-dTh:i:s" />
and used the follwoing to configure the column in the grid panel<ext:Column ColumnID="Date" DataIndex="Date">
<Renderer Fn="Ext.util.Format.dateRenderer('m/d/Y')" />
</ext:Column>
Thank you in advance