By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

ASPNET 2.0 Treeview HELP!

P: n/a
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?
Apr 12 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
So what's the problem? How to style the nodes?

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"William Sullivan" <Wi*************@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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?

Apr 13 '06 #2

P: n/a
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%;
}

"William Sullivan" wrote:
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?

Apr 13 '06 #3

P: n/a
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

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
So what's the problem? How to style the nodes?

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"William Sullivan" <Wi*************@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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?


Apr 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.