Results 1 to 3 of 3

Thread: Grid, Date renderer is'nt working

  1. #1

    Default Grid, Date renderer is'nt working

    Hi, i have a problem with the grid renderer.
    I have the renderer function:

    Code:
    function formatDate(value){
         return value ? value.dateFormat('M d, Y') : '';
    };
    and i've set the datefield renderer to:
    Code:
    renderer: formatDate
    but when i try to load the document the grid is empty, no row, only the header of the grid.

    I check the inline editing grid example and it use the same method.
    Help?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Is the reference to "formatDate" defined in the scope in which the ColumnModel is being declared?

  3. #3

    Default

    yes it is.
    however, i've solved.

    i have not set the type to "date" in Ext.data.Store

    thanks ^^

Posting Permissions

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