Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 02, 2007 15:56
open dhtmlx forum
How to make the parent of a tree datatype in dhtmlxTreegrid to have a Bold font. This should happen only when the cell containing the element has a child to it

How to make the parent of a tree datatype in dhtmlxTreegrid to have a Bold font. This should happen only when the cell containing the element has a child to it , when there is no child then the Bold font should disappear and the normal font should appear.

Kindly help me out regarding this issue.
Answer posted on Jul 05, 2007 10:27
In current version of dhtmlxTreeGrid the node which has children has the same css classes as node without them, so the task can be done only by code modification.

You can locate next code in dhtmlxTreeGrid.js and update it in next way

dhtmlXGridObject.prototype.has_kids_inc=function(pRow,treeCell){
                if (!pRow) return;
                if ((!pRow.has_kids)||(pRow.has_kids==0)){
                    pRow.has_kids=1;
                    pRow.expand="no";
                   pRow.childNodes[treeCell].innerHTML = pRow.childNodes[treeCell].innerHTML.replace(/\/blank\.gif/,"/plus.gif")
                   pRow.childNodes[treeCell].style.fontWeight="bold"; //added
                    }
Answer posted by Alexandra (Support) on Dec 10, 2014 04:34

I hope this information will be enough for you. But you also can have a look at php scheduler and schedueler.