Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. TreeView control

TreeView control

Scheduled Pinned Locked Moved ASP.NET
performancedatabasecomhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    japanreddy
    wrote on last edited by
    #1

    I have a treeview control which gets populated with the data from the database. However, as long as the number of nodes that need to be created are within 500 I have no problem. But when exceeds the number, it almost freezes my web app. I am trying to find out if I could use a paging mechanism for the treeview control to accomplish the performance and speed. Any leads please. Or any remedies for my original problems. thanks / vinayakkatkam@yahoo.com

    M 1 Reply Last reply
    0
    • J japanreddy

      I have a treeview control which gets populated with the data from the database. However, as long as the number of nodes that need to be created are within 500 I have no problem. But when exceeds the number, it almost freezes my web app. I am trying to find out if I could use a paging mechanism for the treeview control to accomplish the performance and speed. Any leads please. Or any remedies for my original problems. thanks / vinayakkatkam@yahoo.com

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, You can add a feature called loading-on-demand to the treeview control. I think you can group the 500 nodes in different levels of the treeview, then at first you just need to load the parent nodes. When the user clicks on a node, you can make a XmlHttpRequest to to the server to query the child nodes of the clicked node, then you can attach them to the tree. You can take a look at some examples below to see how it works: MSDN Library[^] ComponentArt TreeView[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups