Treetxt

Is there a column type like edtxt available for dhtmlxtree to display special characters like &, < >, … ?


There is no separate cell type, but you can change behavior of “tree” excell by next code modification


dhtmlxtreegrid.js , line 332
this.val=this.er.innerHTML;
changed to
this.val= this.er.textContent||this.er.innerText;

dhtmlxtreegrid.js , line 406
this.cell.parentNode.valTag.innerHTML=content;
changed to
this.cell.parentNode.valTag.innerHTML="";
this.cell.parentNode.valTag.appendChild(document.createTextNode(content));



The modification doesn’t seem to work, the label of the cell is still truncated after the character ‘<’

Sample, with dhtmlxtreegrid.js updated in necessary way, sent by email.