3.2.0

Issue with setting cell background color and highlighting cells on focus

After i set the background color of a cell in the grid using:

obj.getCellTemplate(column, row).setStyle("background-color","#FFCFCF");

The highlight color doesn't ever seem to work again when the user clicks on the cell. In other words, instead of a cell turning blue when the user clicks on it, it remains the background color that I set using the javascript code above.

Can anyone tell me how to both change the background color in javascript and make sure that the highlight color still activates when a user clicks on that cell?
John
October 24,
Add !important attribute to the selected cells color -

#myGrid .aw-cells-selected {background: #316ac5!important;}
Alex (ActiveWidgets)
October 25,
Thanks so much! Actually, your suggestion along with

#myGrid .aw-edit-cell{background: #FFFFFF!important;}

did the trick.
John
October 26,

This topic is archived.

See also:


Back to support forum