Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 07, 2007 11:12
open dhtmlx forum
How can I make all entries of the first level (Arts & Music, Business & Finance, Cars, ...) bold and...

How can I make all entries of the first level (Arts & Music, Business & Finance, Cars, ...) bold and 12px font size, while making all other sub-level entries non-bold and 11px font size?
Answer posted on Mar 07, 2007 11:13

Use setItemStyle(itemId,style_string) to set individual item style, where style_string is valid CSS string.

For example:

fatList = tree.getAllFatItems();

fatArray = fatList.split(',');

   for(var i = 0; i < fatArray.length; i++){

    if(tree.getLevel(fatArray[i])==1)

          tree.setItemStyle( fatArray[i],"color: red") }

 Also next trick can be used

 .containerTableStyle table table .standartTreeRow {

            //first level in  tree

}

.containerTableStyle table table table .standartTreeRow {

            //second level in tree

}

.containerTableStyle table table table table .standartTreeRow {

            //third level in tree

}
Answer posted by Embre (Support) on Dec 07, 2014 18:29

Not much can be said in addition to the reply above, but you also can check rich web application framework and editable table ajax and find out what we have probably missed in our explanation.