ASPNET 2.0 Treeview HELP!

G

Guest

I desperately want to replace my hand-made ajax treeview with the 2.0
TreeView. The webpage I'm designing uses the postbacks to dynamically fill
the treeview. The reason why I'm doing this is because my tree is ENORMOUS.
It can possibly hold millions of nodes. The problem is keeping this treeview
constrained as a user clicks through the nodes. I've tried putting it in a
DIV with a set width and height, but the problem is that when you expand a
parent node, the TreeView adds space between the bottom of the last child
node and the top of the next parent node. This is NOT GOOD. The same thing
happens when you set the width and the height of the control itslef. Anybody
have an idea?
 
G

Guest

I tracked down the problem; an errant style in my CSS sheet was doing it.
The following style in a page's style sheet will repro the problem:

div
{
width:100%;
height:100%;
}
 
D

David

I think the space between nodes can be set. It is also possible to add
scroll bars when the tree is larger than the display area. 1,000,000
TreeNodes on a TreeView is not recommended. The recommended max is 100,000
(this seems like too many to me but have seen it somewhere in the docs).

I'm glad someone else is using the TreeView. So far all my TreeView
questions have been ignored. :->

D
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top