Firefox 4k XML node limit

hi
I have issue in Datagrid in Firefox where my XML node length is more than 4k. if it exceeds more than 4k ie(6316 characters) my grid value is showing Empty.

for more details please visit : coderholic.com/firefox-4k-xml-node-limit/

Can u advise what should i do?

thanks

Hello, as it FireFox limitation, you should not use node length more the 4k.

This is an old topic but I didn’t like how dhtmlx dev just gave up on the problem. We are using the dhtmlx tree and I was able to get a fix in. Please bear in mind that I only have the obfustacated code.

In dhtmlxtree.js, update the content method. The “wholeText” attribute has the complete value. This will fall back to using the “data” attribute, which is what dhtmlx was using originally:

xmlPointer.prototype={
   ...
   content:function(){
           if(this.d.firstChild) {
               if(this.d.firstChild.wholeText)
                   return this.d.firstChild.wholeText;
               else 
                   this.d.firstChild.data;
           }
           return "";
       },
   ...
}

Thank you for the excellent solution! We will necessary add it into next tree version. And it will be something like below:

content: function(){ return this.d.firstChild?(this.d.firstChild.wholeText||this.d.firstChild.data):""; },