Hi,
How can we display a loading indicator while the content of a node is loading?
The following does not seem to be the right method:
myTreeGrid.setOnOpenStartHandler(function(id,m){showLoading(); return true;});
myTreeGrid.setOnOpenEndHandler(function(id,m){hideLoading()});
Actually returning true in OnOpenStartHandler will end the open method even if the node content is not loaded yet…
This question is for both components Tree and TreeGrid.
Regards,
Jean.
The code, which you provide - must work for dhtmlxtree 1.6 and dhtmlxtreegrid 1.5, but it will react only on loading initiated by branch loading.
If you are using latest dhtmlxTreeGrid 1.6 ( it will work for tree, or older versions of grid and treegrid as well ), the the next code will work for all loading operation
myTreeGrid.attachEvent(“onXLS”,function(id,m){ showLoading(); });
myTreeGrid.attachEvent(“onXLE”,function(id,m){ hideLoading(); });