Home - Forums-.NET - FlyTreeView (ASP.NET) - more than 35000 nodes

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

more than 35000 nodes
Link Posted: 21-Oct-2005 03:48
Hi,

How can i build a tree width more than 35000 nodes .

Thanks
Fernando Rol?o
Link Posted: 22-Oct-2005 19:18
Let me repeat my reply to you via email:

Actually any node in any treeview control is a complext HTML scructure
with nested html tables, divs, images and so on. And it takes a large
time for browser just to render these thousands of elements and even
just to expand a node when everything is already rendered (display
some HTML element with thousands of nested elements).

> do I have do load the nodes on expande ?
Yes, this is the best choice in the situaction. We provide the
FlyNodeSet control to be used with FlyTreeView.NodeSrc (and
TreeNode.NodeSrc) property. It is placed on a separate ASPX page and
serves FlyTreeView client-side calls to create sets of nodes rendered
in XML form.
Link Posted: 03-Nov-2005 06:14
Thanks,

Now I'm using the FlyNodeSet but the tree take too much time to be rendered even whith 1000 nodes.

Any suggestions ?
Link Posted: 03-Nov-2005 20:55
Just create 1000 of tables with nested elemenets and try to show/hide them using style.display property. And you'll see it will take time for browser just to hide/show these element. This is a general problem. Anyway we do our best to simplify the treeview structure as much as possible for the 4th version of control.
Link Posted: 04-Nov-2005 05:15
I'm still trying to do the tree, now i build the tree root nodes, and when i select a node the select node event occures and i build the next nodes .

is there a option or how can i build the nodes with or without the +/-  expand or collapse simbols, to do the same but for the expand event.
Link Posted: 04-Nov-2005 06:11
Do you want to disallow the user to collapse/expand nodes?
Actually there's no built-in way to disable this. But you may simply remove the onclick handler from the node.htc file.
Link Posted: 06-Nov-2005 22:58
No, i want to check if the node has childs and put the + simbol before de node
Link Posted: 07-Nov-2005 06:28
I want to control the expand simbol on server without render the child nodes
Link Posted: 07-Nov-2005 09:25
In case of FlyNodeSet control, the client-side flytreeview shows the expand image when the NodeSrc of the control is set.

And as you may refer to FileSystem.ascx.cs demo file (FlyNodeSet demo actually)
string[] dirs2 = Directory.GetDirectories(s);
// if folder does not have own children then do not show its NodeSrc
if (dirs2.Length > 0)
   tn.NodeSrc = "NodeSrc/FileSystem.aspx?folder=" + Server.UrlEncode(di.FullName);


Note that NodeSrc is set to nodes that have at least one child node. Thus you do not see the expand symbol for the empty directories.

I think this is what you need.