:: Forum >>

selected row lost mycolor

I have below code to allow me select multiple rows. However I found that the row highlighed will have all fields in black color. If I remove the "black!impartant" in css, then all fields are in white. It lost the color set my myColor function. How to keep the myColor text foreground color for the selected row(s)?

.active-selection-true, .active-selection-true .active-row-cell { color: black!important; background-color: E6E6FF!important; }
obj.getTemplate("column", 0).setStyle("color", myColor);
obj.getTemplate("column", 1).setStyle("color", myColor);
obj.getTemplate("column", 2).setStyle("color", myColor);
obj.getTemplate("column", 3).setStyle("color", myColor);
obj.getTemplate("column", 4).setStyle("color", myColor);

obj.setSelectionProperty("multiple", true);
obj.setAction("selectRow", obj.getAction("selectMultipleRows"));
Henry Ng
Saturday, October 30, 2004
I found that this solved my problem. Add "!important" after my color value in myColor function.

Henry Ng
Saturday, November 6, 2004

This topic is archived.

Back to support forum

Forum search