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.
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
}