If I override the formatCellValue function on a ListGrid, how do I call the standard formatting routines?
I seem to lose the ability to format images for instance - short of rewriting my own image formatter.
e.g.
Works fine. If I put a formatCellValue handler in;
Then my images no longer render. If I use;
then nothing renders.
Looking at ListGrid.js I can see that I seem to have to call the _typeFormatter of the field if it exists, but how do I call this internal function and is that the correct thing to do?
I seem to lose the ability to format images for instance - short of rewriting my own image formatter.
e.g.
Code:
data = isc.DataSource.create({ clientOnly: true, fields: [ {name: "icon", type:"image"}, {name:"description" } ], cacheData: [ { icon: "[SKIN]/headerIcons/close.png", description: "Item 1" }, { icon: "[SKIN]/headerIcons/close.png", description: "Item 2" } ] }); isc.ListGrid.create({ width: "100%", height: "100%", dataSource: data, autoFetchData: true });
Code:
data = isc.DataSource.create({ clientOnly: true, fields: [ {name: "icon", type:"image"}, {name:"description" } ], cacheData: [ { icon: "[SKIN]/headerIcons/close.png", description: "Item 1" }, { icon: "[SKIN]/headerIcons/close.png", description: "Item 2" } ] }); isc.ListGrid.create({ width: "100%", height: "100%", dataSource: data, autoFetchData: true, formatCellValue: function (value, record, rowNum, colNum) { return value; } });
Code:
return this.Super("formatCellValue", arguments);
Looking at ListGrid.js I can see that I seem to have to call the _typeFormatter of the field if it exists, but how do I call this internal function and is that the correct thing to do?
Comment