PDA

View Full Version : How to change dynamically style of a tree node - specifically text color and weight



tomapete
21 May 2012, 8:33 AM
Hi,

Could any1 please help me with this simple problem:

How dynamically change styling of a tree node - specifically text color and weight.
In 3.4 it was something like node.getUI().addClass/removeClass(), but in 4.1 i don't really see anything similar to this.

Thanks
Mike

scottmartin
25 May 2012, 4:17 PM
You can use the following:



.x-grid-row-selected .x-grid-cell, .x-grid-row-selected .x-grid-rowwrap-div {
color: white;
background-color: red !important;
}


Regards,
Scott.