Home - Forums-.NET - FlyTreeView (ASP.NET) - Web Server Controls as Part of FlyTreeNode

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Web Server Controls as Part of FlyTreeNode
Link Posted: 24-Jan-2008 11:24
Hi everyone

We are evaluating the FlyTreeView. One of our test cases is to load server controls in tree node. Basically we need for example ASP button, ASP textbox, or ASCX usercontrol attached to the tree node. Not master-detail! I have spent some time trying to find the solution, but to no avail. Because other treeviews allow this, i would assume that FlyTreeView allow this as well. Could you please explain how to do this?

Cheers
Link Posted: 24-Jan-2008 11:42
Basically, to make node using server template, a FlyNodeType instance should be defined and added to FlyTreeView.NodeTypes collection. This nodetype should have ContentTemplate property set to template desired to be used with associated nodes.

There's a good "Server Templates" demo:
http://www.9rays.net/asp.net_2/treeview/Demo_ServerTemplates.aspx

See the source code at the bottom of the page.