PDA

View Full Version : [SOLVED] Apply CSS class to TreeNode after load



mohan_b
9 Apr 2010, 6:21 AM
I am trying to apply CSS class to all the treenodes, the css class will be dependent on some condition hence has to be done on the fly rather than through the config/defnition

Please let me know if you know how is this done

mohan_b
9 Apr 2010, 7:47 AM
Found the answer, it was node.ui.addClass('myClass')

CrazyEnigma
9 Apr 2010, 9:24 AM
I know this is a pain. Thanks for your sleuthing, but if you solved it, can you modify your original title to append [SOLVED]?

mohan_b
9 Apr 2010, 9:28 AM
Sorry, I didnt know threads needed to be marked [SOLVED]

Will gladly do it, Thanks for the heads up