Categories | Question details Back To List | ||
treeGrid and updateFromXML 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: http://10.1.1.20/scripts/dhtmlx/dhtmlxGrid/codebase/dhtmlxcommon.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 Answer posted by dhxSupport on Dec 18, 2009 02:28 1) 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. Answer posted by Francisco on Dec 18, 2009 07:54 >>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. Answer posted by dhxSupport on Dec 21, 2009 02:32 Unfortunately there is no way to use updateFromXML in such way. |