TreeView is painfully slow.

M

Mufasa

I have a TreeView with about 300 nodes in it. Each has about 1-2 children.
It takes something like 30 seconds to load the treeview. The actual SQL
behind is it very fast. It seems like it's the creating in the browser ( the
actual adding of the nodes seems to be pretty quick. )

What can I do to speed up the loading process. The tree is static once it's
been created the first time.

TIA - Jeff.
 
L

lwhitb1

I have a TreeView with about 300 nodes in it. Each has about 1-2 children.
It takes something like 30 seconds to load the treeview. The actual SQL
behind is it very fast. It seems like it's the creating in the browser ( the
actual adding of the nodes seems to be pretty quick. )

What can I do to speed up the loading process. The tree is static once it's
been created the first time.

TIA - Jeff.

The TreeView contol comes with a "Populate On Demand" feature that
will allow users to fill branches of the tree as they are expanded.
One thing you could do is Filter your "300" nodes, and set the
PropertyOnDemand to true on those filtered nodes. That way instead of
filling the whole tree when the page loads, you it will just load the
nodes on demand.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top