Hello,
Two questions about treeGrid and updateFromXML:
1) Is updateFromXML supported with TreeGrid? I got the following error:
Message: Object doesn’t support this property or method
Line: 22
Char: 433
Code: 0
URI: 10.1.1.20/scripts/dhtmlx/dhtmlxG … xcommon.js
2) I was calling it as follows:
mygrid.updateFromXML(xmlLeftPane);
where xmlLeftPane is a client side xmldocument. Is that allowed?
I am using version 2.5.
Regards,
Francisco
- updateFromXML method is defined at dhtmlxgrid.js file. So this error may return some other method, not updateFromXML
2) First parameter of updateFromXML method should be reference to the file which returns valid xml for treeGrid.
>>2) First parameter of updateFromXML method should be reference to the file which returns valid xml for treeGrid.
Right but I don’t have a file…just the in-memory xml document object.
I load the treegrid by using:
mygrid.parse(xmlDocObject,“xmlB”) where xmlDocObject is my in-memory xml document object.
I then have some code that manipulates data in some of the nodes in the xmlDocObject. Now I want to use mygrid.updateFromXML(xmlDocObject) to update the cells in my grid. Will this work?
I know that I can use
mygrid.cells(rowId,cellId).setValue to manually set the value of each cell after a change in the xml document object but I was wondering if updateFromXML would handle that for me.
Unfortunately there is no way to use updateFromXML in such way.