Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sopra on Aug 25, 2008 05:50
open dhtmlx forum
Treetxt

Is there a column type like edtxt available for dhtmlxtree to display special characters like &, < >, ... ?
Answer posted by Support on Aug 25, 2008 06:26

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));

Answer posted by Sopra on Aug 25, 2008 07:26
The modification doesn't seem to work, the label of the cell is still truncated after the character '<'
Answer posted by Support on Aug 25, 2008 09:45
Sample, with dhtmlxtreegrid.js updated in necessary way, sent by email.