Results 1 to 4 of 4

Thread: Time format into grid

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    37

    Default Time format into grid

    I have some issues about displaying time into grid.
    I get time from json in this format: 00:00:00

    I set fields in the Ext.data.Model as follows:

    PHP Code:
    {name'h_hour'mapping'h_hour'type'date'dateFormat'time'}
    or
    {
    name'h_hour'mapping'h_hour'type'date'dateFormat'timestamp'
    and in the grid as follows:

    PHP Code:
    {header'Hour'flex15dataIndex'h_hour'xtype:  'datecolumn'format'H:i'sortablefalse
    The time displayed into grid is always 00:00 even if it gets from json something like this: 00:45:00

    What can be wrong in my code?

    Thanks in advanced

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi,

    Try to use format:'H: i : s' instead of format:'H:i'
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    37

    Default

    It's the same. I have just tried.

  4. #4
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi,

    You can check this link http://docs.sencha.com/ext-js/4-1/#!...id.column.Date
    it will be helpfull
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •