Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Abbie on Dec 14, 2009 16:27
open dhtmlx forum
DhtmlxTree data loading

Hello,

I have a child node that takes a while to load with tree.setXMLAutoLoading (about 350 folders loaded from database). Is there any way to show rolling hourglass or similar to let user know the application is working on their request.

At the moment the application appears as if unresponsive after clicking to open node, therefore users have tendency to click node multiple times.

Thanks!
Answer posted by Alex (support) on Dec 15, 2009 01:24

Hello,

you can use onXLS (loading start) and onXLE (loading end) events:

http://dhtmlx.com/docs/products/dhtmlxTree/samples/07_events/01_pro_load_events.html

Also you can lock tree when the loading is started and unlock it on loading end (lockTree method is available only in PRO edition):

http://dhtmlx.com/docs/products/dhtmlxTree/samples/13_nodes_manipulation/03_pro_lock_tree.html