Populating treeview with 1 million nodes in asp.net1.1
-
Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur
-
Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur
Kapil Thakur wrote:
How can i do that while maintaining the efficiency of the web page.
You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand). You should rather think of another solution.
-
Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur
There is no way to do that. Even if you could add that many node (I think the limit is 65,535), the TreeView wouldn't be usable until the entire tree is loaded. With 1 million nodes, that would take a LONG time, even over a 10Mb/sec connection.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur
As the previous two members stated, this is unrealistic. What exactly are you trying to accomplish with your application? Perhaps we can suggest a more efficient working-model to solve your problem. On the other hand. You might be able to use a TreeView. You would need to AutoPostBack based upon which nodes are clicked, and then generate childNodes for those upon Page Load. This way, you never have 1,000,000 nodes on a single page, but instead potentially just a few hundred. Either way, you should tell us what it is you're trying to accomplish, and not how you wish to do so :)
Jonathan Sampson www.SampsonResume.com
-
Kapil Thakur wrote:
How can i do that while maintaining the efficiency of the web page.
You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand). You should rather think of another solution.
hi, thanks for the reply. i knew that loading such a tree is impossible. however is there any way by which i can implement the previous & next methods like paging in datagrid. that is, on demand i can load a certain number of nodes and then get options like previous and next links. on clicking them, i will load next number of nodes. can that be achieved? thanks & regards, Kapil Thakur
-
Hi , I want to populate a treeview with 1 million nodes. How can i do that while maintaining the efficiency of the web page. i want to achieve this in asp.net 1.1 though i have the option of working in asp.net 2.0 but i m not familiar with that. suggestions for asp.net 2.0 are also welcome. thanks & regards Kapil Thakur
as a treeview nodes have indexes in integer you can not make nodes more than integer maximum amount. try xml files to make a tree-shaped output.