Error displaying a date in the IE browser with GridPanel

  1. #1

    Error displaying a date in the IE browser with GridPanel

    Guys, look

    FireFox
    Click image for larger version. 

Name:	Column Date Ok GridPanelpng.png 
Views:	130 
Size:	49.4 KB 
ID:	2057

    IE
    Click image for larger version. 

Name:	Column Date Wrong GridPanelpng.png 
Views:	160 
Size:	49.9 KB 
ID:	2058

    Does anyone know how to fix this error?

    <ext:RecordField Name="EXT_DtEmissao" />
    
    
    <ext:DateColumn Format="dd/MM/yyyy" Width="70px" ColumnID="EXT_DtEmissao" Header="Emissão" DataIndex="EXT_DtEmissao" Align="Center">
    </ext:DateColumn>
    Awaiting and Thanks
    Last edited by Tigra; Dec 17, 2010 at 6:10 PM.
  2. #2
    Hi,

    It is need to set Type="Date" and appropriate DateFormat for the RecordField
    How the date is represented in the json data object which you binded to the store?
  3. #3
    Hi,

    For example please see the following sample
    https://examples1.ext.net/#/GridPane...ON_WebService/

    <ext:RecordField Name="Availability" Type="Date" DateFormat="M$" />
  4. #4
    Thanks Vladimir,

    But when the Type is Float like format with three decimal places?

    Is there someplace that tells about formatting fields and their types in ExtJs? And how to use them?

    Thanks again.
  5. #5
    Vladimir,

    It did not work the date field is now blank. How do now?

    <ext:RecordField Name="EXT_DtEmissao" Type="Date" DateFormat="M$" />
    
    <ext:DateColumn Format="dd/MM/yyyy" Width="70px" ColumnID="EXT_DtEmissao" Header="Emissão" DataIndex="EXT_DtEmissao" Align="Center">
    </ext:DateColumn>
    Click image for larger version. 

Name:	Coluna data em branco.png 
Views:	128 
Size:	53.6 KB 
ID:	2071

    Thanks.
    Last edited by Tigra; Dec 20, 2010 at 10:45 AM.
  6. #6
    Hi,

    Why do you set DateFormat="$M"? What format has date in the response?
    I didn't recommend to set $M
    appropriate DateFormat for the RecordField
  7. #7
    Hi,

    So what are the supported formats?
    I did like the example you passed...

    Thanks.
  8. #8
    Hi,

    There is no such term as supported formats. You have to define correct format manually. Correct format depends from the string which parsed as date. So, please provide the string from json object in your response which contains the date

Similar Threads

  1. [CLOSED] Displaying Error After Resizing the window
    By imaa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 27, 2011, 9:38 AM
  2. [CLOSED] Displaying Todays date in Date field
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 22, 2011, 10:38 AM
  3. displaying date in short format in a grid
    By pearl in forum 1.x Help
    Replies: 2
    Last Post: Dec 19, 2009, 3:14 AM
  4. Date column on GridPanel not displaying
    By lionelhutz in forum 1.x Help
    Replies: 0
    Last Post: Nov 16, 2009, 5:47 PM
  5. [GridPanel] Filter error when date is null
    By knoll in forum 1.x Help
    Replies: 3
    Last Post: Apr 22, 2009, 7:20 AM

Posting Permissions