Color coding text value in an onChangeCell client event?

I know that I can use a Server onAfterGet method to set the css property to change the color of cell text or cell background color in a relationship grid. But I would like to immediately highlight a data entry error that fails validation by highlighting the cell in a different color (red text, for example). I would rather not pop up an alert..

I have set up an onChangeCell client (JavaScript) event on the property, and tried using this code:

var val = gridApplet.GetCellValue(relationshipID, colNumber);
if (val < 0) {
gridApplet.SetCellTextColor(relationshipID, colNumber, "#FF0000");

But the SetCellTextColor call triggers a Dojo error, with details like: Invalid item argument.

Any suggestions to allow this to work?



Parents Reply Children
No Data