Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 30, 2008 13:09
open dhtmlx forum
How to chnage each section color into dhtmlxTree

I need each section color should be different in dhtmlxTree,
please help me on this, color values we are pushing into XML file from database.

Now I need a script how to write the color code's in XML?? Or I need make any changes in CSS or JS file??

Thanks,
Venkat
Answer posted by Support on Jan 31, 2008 06:31
You can define color of item text for each item by using  aCol  attribute
     <item id="p8" text="some text" aCol="red" sCol="green" />
if you want to change bg color - it can be done by using style attribute
     <item id="p9" text="some text" style="background-color:red" />