Results 1 to 2 of 2

Thread: Gridcolumn Format Problem

  1. #1
    Sencha User
    Join Date
    Aug 2017
    Location
    Brazil
    Posts
    5

    Default Gridcolumn Format Problem

    Hi All,I'm using formatter: 'date("d/m/Y")' to convert date to PT-BR format, but the result returns with one day less, in my database a date is 2018-04-01. formatter returns 2018-03-31, the same problem is happing when i try to use renderer return Ext.Date.format(value, 'd/m/Y'), follow example:

    My Grid Column

    column.png

    Code:
    {
                                    xtype: 'gridcolumn',
                                    dataIndex: 'TERMINO_PROMOCAO',
                                    width: 100,
                                    formatter: 'date("d/m/Y")',
                                    text: 'FIM'
    },
    Json Data

    json.png

    I'm using Sencha Architect:


    Version: 4.2.3.371
    Channel: 4.2-stable
    Platform: 1.6.2.49 - win32 x64
    Renderer: 56.0.2924.87
    Cmd: 6.5.3.6
    Framework: Ext JS 6.5.x Classic

    Any idea what i need to do to fix this problem?

  2. #2
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    Where is the definition of the store model? Why don't you use the 'Ext.grid.column.date' ?
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

Similar Threads

  1. gridcolumn tpl not updated
    By mcelotti in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 24 Oct 2016, 1:50 PM
  2. Replies: 4
    Last Post: 27 Jan 2014, 3:04 AM
  3. lock on gridcolumn
    By angelo88 in forum Ext: Q&A
    Replies: 2
    Last Post: 10 Jul 2013, 2:17 PM
  4. Number field currency format format problem
    By sahinci in forum Ext: Q&A
    Replies: 2
    Last Post: 12 Sep 2011, 10:54 PM

Posting Permissions

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