Home - Forums-.NET - FlyTreeView (ASP.NET) - Hiding Nodes

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Hiding Nodes
Link Posted: 17-Jul-2008 02:33
I am importing nodes into the TreeView, because the user can add and remove elements from the database I have to be very careful to ensure there is always a parent in the database.

I have an element called: "No Parent"

So I was wondering how I would go about hiding this element in the tree so that I can be selected or deleted?

I am currently not pulling the "No Parent" element into the tree, which does help but was curious if I could hide this node and/or stop it from being manipulated.

Aslo is there a way to save the current view state when I do a post back so that I can restore the viewstate. Right now when I add / edit / remove it causes a postback and as a result the tree is reset. If I could save the viewstate it would really help.
Link Posted: 17-Jul-2008 07:25
what do you mean "hiding", nodes cannot be invisible.

Also, there's no built-in feature to save treeview state somewhere. So if want it, then you need to implement your custom function to recursively save nodes (serialize) and deserialize back when needed.