Sorry but I have yet another question. In my table, I have a date column where I specify a specific cellsformat attribute when I define the columns. I want to be able to have this column to sometimes be displayed in red. So I added a cellsrenderer attribute to the grid definition and it points to the following function (I replaced the greater than symbol with X and less than symbol with Y so the line displays here):
var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
if (some condition) {
var string = ‘XdivY style=”color: #ff0000; text-align: ‘ + columnproperties.cellsalign + ‘;”Y’ + value + ‘X/divY’;
return string;
}
};
When my grid is displayed, the column is displayed in red correctly. However, the cell formatting is lost and the date is displayed in the default format. What do I have to do so the format is maintained?
Thank you for your assistance.