Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      0  

    Exclamation [4.0.7] "renderer" for datecolumn didn´t get called

    [4.0.7] "renderer" for datecolumn didn´t get called


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.0.7

    Browser versions tested against:
    • Firefox 11 (Windows)

    Description:
    • Ext.grid.column.Date - definingt a "renderer" function has no effect

    Steps to reproduce the problem:

    create a new grid with this column:

    PHP Code:
    {
        
    xtype'datecolumn',
        
    dataIndex'date_time',
        
    text'Test',
        
    format'd.m.Y - H:i',
        
    renderer: function(value){
            return 
    value ' FooBar';
        }

    The result that was expected:
    • 25.01.2012 - 22:30 FooBar

    The result that occurs instead:
    • 25.01.2012 - 22:30

  2. #2
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      0  

    Default


    got it, but using "renderer" would make more sense to me

    PHP Code:
    {
        
    xtype'datecolumn',
        
    dataIndex'date_time',
        
    text'Test',
        
    format'd.m.Y - H:i \\F\\o\\o\\B\\a\\r'


  3. #3
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,711
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default


    If you need to use a renderer you can't use DateColumn. All a datecolumn is, is a regular column setting a renderer...

Thread Participants: 1