I want to change the edited cell HTML whene it's invalide, I'm trying to do it in the onCellChange
event and gettind the active cell node throught getActiveCellNode
and change it's HTML, the problem is that the DOM changes do not apply.
Here is the code:
grid.onCellChange.subscribe(function (evt, args) {
var $cell = $(grid.getActiveCellNode());
if (validateCell(grid.getActiveCell())) {
$cell.html('<div style="background: #FFCCCC" title="This field is invalid">Field invalid!</div>');
}
}