I add a field of type "icon" on ListGrid modifying "/smartclientSDK/isomorphic/system/reference/SmartClient_Explorer.html#imageType" as in the following code:
note that I use cellIcon and not icon to specify src of same image that I want show in all record.
As specified in documentation:
"Unless setting field.icon, setting field.cellIcon will not show an icon in the header" the header don't have icon.
But setting the field with "canFilter: false" shows the icon on empty filter space over the header.
Code:
isc.ListGrid.create({
ID: "countryList",
width:200, height:224, alternateRecordStyles:true,
data: countryData,
showFilterEditor: true,
fields:[
{name:"countryCode", title:"Flag", width:50,
type: "image",
imageURLPrefix: "flags/16/",
imageURLSuffix: ".png"
},
{name:"countryName", title:"Country"},
{name:"test", title:"test", canFilter: false, type:"icon", width:40, cellIcon:"flags/16/US.png"},
]
})
As specified in documentation:
"Unless setting field.icon, setting field.cellIcon will not show an icon in the header" the header don't have icon.
But setting the field with "canFilter: false" shows the icon on empty filter space over the header.
Comment