date time field in grid panel

  1. #1

    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

    <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
  2. #2
    You can use:
    <ext:DateColumn ColumnID="Date" DataIndex="Date" Header="Date"
                                        Align="Center" Format="m/D/y HH:mm:ss">
                                       
                                    </ext:DateColumn>

Similar Threads

  1. [CLOSED] Date time field editing in gridpanel
    By bossun in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 05, 2012, 5:18 AM
  2. Replies: 3
    Last Post: Jul 24, 2012, 8:40 PM
  3. [CLOSED] Field with Date And Time
    By fehmeed.bilgrami in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 10, 2010, 6:47 AM
  4. [CLOSED] Time field prblem in the grid?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 30, 2009, 8:24 AM
  5. Replies: 0
    Last Post: Oct 07, 2008, 9:56 AM

Posting Permissions