Help Handling Treeview
-
:confused:I have this case: My page has a treeview control which can go on upto 1000(or more but not practically needed) level of nodes. On clicking a node i have to show an entry form in a panel next to treeview(this page not use frame)which itself has multiple web dropdowns and list boxes. Its very slow to populate(uses the viewstate) Can anyone suggest a better way to maintain its state? will fragment caching help? >>>>
-
:confused:I have this case: My page has a treeview control which can go on upto 1000(or more but not practically needed) level of nodes. On clicking a node i have to show an entry form in a panel next to treeview(this page not use frame)which itself has multiple web dropdowns and list boxes. Its very slow to populate(uses the viewstate) Can anyone suggest a better way to maintain its state? will fragment caching help? >>>>
>will fragment caching help? Definitely. Only hit the database to regenerate the HTML of the tree when it changes or the cache expires. Do things like "current page", expanding, collapsing etc. using JavaScript. If however you find the HTML for your tree is getting too big then write it out to a JS file and include that client side. It is not as pretty and it won't be in the view-source but it will then cache and the user won't have to download it each time. regards, Paul Watson South Africa Michael Dunn wrote: "except the sod who voted this a 1, NO SOUP FOR YOU" Crikey! ain't life grand?
-
>will fragment caching help? Definitely. Only hit the database to regenerate the HTML of the tree when it changes or the cache expires. Do things like "current page", expanding, collapsing etc. using JavaScript. If however you find the HTML for your tree is getting too big then write it out to a JS file and include that client side. It is not as pretty and it won't be in the view-source but it will then cache and the user won't have to download it each time. regards, Paul Watson South Africa Michael Dunn wrote: "except the sod who voted this a 1, NO SOUP FOR YOU" Crikey! ain't life grand?