Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Images in image cells in grid are not rendered when using formatCellValue

    The following code renders images correctly in the ListGrid:
    Code:
    {name:"country_abbr",title:"Country",type:"image",imageURLPrefix:"../images/countries/",imageURLSuffix:".gif",width:50},
    However, adding formatCellValue() makes images disappear and only actual string values to be shown instead:
    Code:
    function countryFormat(value){
     return value;  //for the purpose of this test case, this function does nothing, just returns the same value
    }
    
    {name:"country_abbr",title:"Country",formatCellValue:"countryFormat(value)",type:"image",imageURLPrefix:"../images/countries/",imageURLSuffix:".gif",width:50},
    In this example countryFormat() only returns the same value but still images are not getting rendered.

    Reproducible on all major browsers (IE, FF, Chrome).
    Smartclient 8.2 Pro (SmartClient_v82p_2012-05-21_Pro).


    Also, is it possible to display two or three images in a single grid cell?

    Thanks,
    - Gene
    Last edited by genev; 4 Jun 2012, 00:48.
Working...
X