When displaying extensive MLM (Multi-Level Marketing) hierarchies using TreeView in ASP.NET, performance issues often arise due to the sheer volume of nested nodes. Loading thousands of members at once can slow down the interface, increase page load time, and degrade user experience.

Recommended Answers

All 2 Replies

Two possible ways to handle this:

  1. Populate the tree in a separate thread
  2. Only populate sub-nodes as required to view

You can do option 2 by putting the "populate directly under this node" code in the event that gets triggered when you select a node.

IDK about ASP, but in desktop apps you can call LockWindowUpdate in user32 to pause the update until after the treeview has been populated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.