Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sanju Thomas on Aug 08, 2009 05:17
open dhtmlx forum
color of treeGrid column line

How do I change the color of the treeGrid column line ?
Answer posted by dhxSupport on Aug 10, 2009 01:58
You can change column color whith setColumnColor(clr) method where clr - comma delimited colors list:
 mygrid.setColumnColor("white,#d5f1ff,#d5f1ff");
You can change background-color of the necessary row via XML or with API:
<row bgColor="red" class="classForTherRow" style="background-color: red">....</row>
<cell class="cellClass" style="background-color: red">...</cell>

setRowColor(row_id, color) - sets background color of row (via bgcolor attribute):
 mygrid.setRowColor("row1","red");

setRowTextStyle(row_id, styleString) - sets style to row: 
 grid.setRowTextStyle("r123", "background-color: red; font-family: arial;");