Results 1 to 2 of 2

Thread: Pattern to populate a treeview in asp.net 2

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Pattern to populate a treeview in asp.net 2

    Hi!

    Im working on a page which displays configurations to the user. The configurations are in a hierarchy, and can be of several diffrent types.

    My problem is that there are soo many items on some nodes, like 10 levels or something.

    Right now when only using a partially loaded db it takes about 6 seconds for the page to load. But when I load the full db I calculated about 30 seconds. I have used .net caching for the datasets, and the populating methods have been optimized. What I need is to reduce the size of the datasets that are returned. I tried datareaders, but didnt notice any performance gains. It was infact better to use datasets and caching, since items can then be reused when populating the tree.

    Anyone have any clever ideas on how to maximize performance for the treeview? I can only think about dynamically loaded nodes.. but have no clue how to implement them.... In order to render the (+) there have to be child items on the node... and if I know that, then I have fetched the child items already.... and then whats the point? Lol.. its driving me nuts!!

    /henrik

  2. #2
    Fanatic Member Slaine's Avatar
    Join Date
    Jul 2002
    Posts
    641

    Re: Pattern to populate a treeview in asp.net 2

    Is this any help?

    http://www.15seconds.com/issue/041117.htm

    About half way down they discuss dynamic population that may help you overcome your concerns.
    Martin J Wallace (Slaine)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width