I want to set the background-color of a cell in javascript using the following code when the OnCellUpdatedClientFunction is called :
function
onRatingCellUpdated(cell) {
this.setActiveCell(this.getActiveRow(), this.getActiveColumn());
this.getActiveCell().style.backgroundColor = 'yellow';
alert('test');
}
The problem is that the color is modified before the call to the alert function (I can see it in the grid) but immediately reseted to the previous style at the end of the onRatingCellUpdated function. Is there a way to keep the style applied ?