DateColumn and Ext.util.Format.date problem in Safari 5.1.1

  1. #1

    DateColumn and Ext.util.Format.date problem in Safari 5.1.1

    GridPanel...
    <ext:DateColumn Header="Created" DataIndex="Date" Format="dd/MM/Y" />
    this renders fine in all browsers except Safari. Safari output looks like "Nan/Nan/0Nan"

    If I use a renderer...
    <ext:Column DataIndex="Date">
    <Renderer Handler="return Ext.util.Format.date(record.data.Date, 'M d, Y');" />
    </ext:Column>
    the grid panel does not output ANYTHING in Safari, but looks fine in other browsers.
    Last edited by Daniil; Nov 29, 2011 at 7:18 PM. Reason: Please use [CODE] tags
  2. #2
    Fix: I was able to fix this by specifying the datatype as Date in my Store, rather than a String.

    Weird thing is all browsers, except Safari, were very forgiving and rendered the date properly.

Similar Threads

  1. Replies: 3
    Last Post: Nov 01, 2011, 6:15 PM
  2. [CLOSED] Error in the Ext.util.Format.date
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 16, 2011, 11:42 AM
  3. [CLOSED] Date Format in DateColumn Elements
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 28, 2011, 8:12 AM
  4. util formats for Ext.util.Format.fileSize
    By fatihunal in forum 1.x Help
    Replies: 2
    Last Post: May 21, 2011, 12:47 PM
  5. Ext.util.Format.brMoney()
    By joao.msdn in forum 1.x Help
    Replies: 0
    Last Post: Dec 30, 2010, 12:40 PM

Tags for this Thread

Posting Permissions