Dhtmlx tree how to change the default background color of a

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”);


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”);