A basic smart-rendering setup, during the loadXML call I get this error in the Console:
Uncaught TypeError: Cannot call method 'indexOf' of undefined dhtmlx.js:131
The stack trace is as follows:
dtmlXMLLoaderObject.doXPath dhtmlx.js:131
eXcell_combo.fillColumnCombos dhtmlx.js:9020
(anonymous function) dhtmlx.js:8980
z dhtmlx.js:178
obj.callEvent dhtmlx.js:175
xmlLoader.onloadAction dhtmlx.js:6600
check dhtmlx.js:18
FYI: Originally I was experiencing this problem in both Google Chrome and Mozilla Firefox, but as I pared the source files down to create the demo, it seems to be isolated to Chrome, now?
I tracked this down to two CSS settings that do not make much sense to me why they would cause this issue, so perhaps you can shed some light on what I may be doing wrong or if there is a bug in the DHTMLX code for the scenario I’ve got.
The first setting was a “height” CSS on the grid container DIV. When enableAutoHeight was set to false, and this height setting was specified, it would result in this error during a loadXML() call.
The second setting was a “word-wrap” CSS in the skin file. When setInitWidth() used a very small width for the columns, and this word-wrap setting was specified, it also would result in this error during a loadXML() call.
Using the Chrome debugger tool, I could see that the dhtmlx code was attempting to get the nodeName property on the “docObj” variable. the “docObj” variable at the time was set to the XMLHttpRequest object, which doesn’t have a nodeName property, so I was confused at this, as well.
Thanks for any input/assistance on this issue!
–Dan
Completed Demo.zip (376 KB)