How come?
Some include order related issue?
I do have the dhtmlXTree_xw.js script and can see the method defined in there
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.
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.
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?
//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.
Where can I find the latest dhtmlxtree_xw.js file?
Even a not fully ops version will do for test purposes.
Thx
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.