Categories | Question details Back To List | ||
openAllItemsDynamic returns an error "Object doesn't support this property or method " How come? Some include order related issue? I do have the dhtmlXTree_xw.js script and can see the method defined in there Answer posted by Support on Apr 03, 2008 06:01 >>Some include order related issue?
Don't think so, if you have included dhtmlxtree_xw.js after dhtmlxtree.js there must not be such problem Please be sure that you are use correct case of file names, started from dhtmlxgtree1.5 the names of all files lowercased. Answer posted on Apr 03, 2008 06:27 There was a problem with that (namecase) but it was also because of the setOnLoadingEnd() method that's undefined; Had to replace the code with this in dhtmlxtree_xw.js : dhtmlXTreeObject.prototype.openAllItemsDynamic = function(itemId) { this.ClosedElem=new Array(); this.G_node=null; var itemNode = this._globalIdStorageFind(itemId||this.rootId); this.onLoadReserve = this.onXLE; this.onXLE=this._loadAndOpen; if(itemNode.XMLload==0)this.ClosedElem.push(itemNode); //this.setOnLoadingEnd(this._loadAndOpen); this._openAllNodeChilds(itemNode,0); if(this.ClosedElem.length>0)this._loadAndOpen(this); }; Thansk. Answer posted on Apr 03, 2008 06:57 Also added this in case the item gets closed in the meantime; after:: this.onXLE=this._loadAndOpen; if(this._getOpenState(itemNode)<0)this._HideShow(itemNode,2); Seems to work; Any flashy drawbacks? Answer posted by Support on Apr 03, 2008 09:52 >> //this.setOnLoadingEnd(this._loadAndOpen); It seems that you are using xw extension from some older version, the latest code hasn't such code-line at all. >>Any flashy drawbacks? The update seems correct and must not cause problem with other functionality. Answer posted by Yves on Apr 09, 2008 09:56 Where can I find the latest dhtmlxtree_xw.js file? Even a not fully ops version will do for test purposes. Thx Answer posted by Support on Apr 10, 2008 02:04 This extension available only in pro edition of dhtmlxtree. If you need latest file - please contact us directly at support@dhtmlx.com and provide your reference number. |