Jul 13, 2011, 12:21 PM
Treepanel: expand ~1500 nodes gives error
Hi,
I´m fighting with this for 2 days now...
In a Treepanel, I´m loading nodes via a Treeloader. The data contains about 20 top-level nodes but with about 1500 subnodes in up to 10 sub-levels. At the initial loading, of course not all nodes are retrieved. Problem is that it should be possible to expand each and every node (which does not make sense IMHO, but my opinion doesn´t count). When trying to execute myTreepanel.ExpandAll() in codebehind, I immediately see many error messages in the VS output window saying "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in System.Web.dll", while nodes get expanded in the UI. After some seconds, the browser shows a gray masked windows (Title: "Request Failure", Text: "Status Code: -1, Status Text: transaction aborted").
Doing this for a smaller amount of nodes does not face this problem. I suspect that the webserver is flooded with too many requests to load the nodes that should be expanded. Is there a way to restrict the amount of concurrent requests or even to send the next "Expand"-request after the previous one is finished?
Currently I´m doing the coding in the code-behind file but if necessary, I will put it the markup file.
Many thanks in advance,
Rob
I´m fighting with this for 2 days now...
In a Treepanel, I´m loading nodes via a Treeloader. The data contains about 20 top-level nodes but with about 1500 subnodes in up to 10 sub-levels. At the initial loading, of course not all nodes are retrieved. Problem is that it should be possible to expand each and every node (which does not make sense IMHO, but my opinion doesn´t count). When trying to execute myTreepanel.ExpandAll() in codebehind, I immediately see many error messages in the VS output window saying "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in System.Web.dll", while nodes get expanded in the UI. After some seconds, the browser shows a gray masked windows (Title: "Request Failure", Text: "Status Code: -1, Status Text: transaction aborted").
Doing this for a smaller amount of nodes does not face this problem. I suspect that the webserver is flooded with too many requests to load the nodes that should be expanded. Is there a way to restrict the amount of concurrent requests or even to send the next "Expand"-request after the previous one is finished?
Currently I´m doing the coding in the code-behind file but if necessary, I will put it the markup file.
Many thanks in advance,
Rob