Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by abhishek on Aug 31, 2009 02:50
open dhtmlx forum
dhtmlx tree how to change the default background color of a node?

how to change the default background color of a node?

i have tried this method...........but it changed only the text of the node

tree.setItemColor(1,"GREEN","blue");
Answer posted by Alex (support) on Aug 31, 2009 03:00

You can use setItemStyle method or style attribute in the xml:

tree.setItemStyle(id,css_string)

for example

tree.setItemStyle("some_id","background-color:red");