In the previous articleArticle《Dynamic Tree loading using AjaxThis section describes the dynamic loading tree solution and the defects of Static Loading trees. To illustrate the slow response of the Static Loading tree when the data volume is large, this article provides an example. In this example, all the nodes of the tree are loaded at one time, when the number of nodes in the tree increases, you will obviously feel that the tree is not easy to use. Users often need to wait patiently for the response of the page. ExampleCodeYou can download it from here.
You can adjust the parameters in default. CS to change the depth of the tree test data and the number of subnodes of each level, thus changing the number of nodes of the entire tree:
- private const int tree_level = 6; // tree depth
- private const int itemcount_per_level = 6; // number of nodes per level