Hi EO Product Support Team,
We are using licensed version of Essential Objects pack in our project. We are loading Treeview control with a large number of nodes. The browser shows the following error when treeview is loading.
---------------------------
Windows Internet Explorer
Stop running this script?
A script on this page is causing Internet Explorer to run slowly.
If it continues to run, your computer might become
unresponsive.
Yes No
---------------------------We have investigated for this error and it seems this is because internally EO treeview control is creating a large number of nodes in one shot. That is why it is taking a long time to complete the entire Javascript execution and causing browser to worry about time consuming script. This error given by browser is genuine. The error is easily reproducible with 500-600 nodes.
This problem is generic. The solution for this problem has been suggested in many articles on web. The solution is you should give browser a breather while executing long running script and halt time consuming processing at due intervals.
Refer thisGood solution is to use setTimeout() and load treeview nodes batch by batch internally and not in one go. It is expected that this should be handled by EO team in internal EO code because consumer of the treeview has no control over internal creation/loading of treeview nodes.
Our client has raised this as a critical item for us and we need a patch/fix as soon as possible. In one earlier thread, it has been suggested that we use "PopulateOnDemand" property of node. But the problem is we have only one root node and it contains 900-1000 child nodes. We want to show this root node in expanded mode and load all child nodes without the need of expanding root node. Thus "PopulateOnDemand" property is not applicable in our case.
Please treat this as an urgent item. Your prompt response will really be appreciated.
Regards,
Murtaza