Home - Forums-.NET - FlyTreeView (ASP.NET) - Checkbox enable only on lastnodes

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Checkbox enable only on lastnodes
Link Posted: 08-Jul-2007 21:17
I generate my tree using \"ConvertTabularDataToHierarchical\".
IsCheckBox=true

How can I:
Last nodes  -  Checkbox enable or visible = true
Node is NOT an lastnode  -  Checkbox enable or visible =false
Link Posted: 09-Jul-2007 08:22
Edit FlyTreeView.NodeTypes collection.
Add a new NodeType and set it properties:

IsCheckbox = true, AutoApplyAtLeaf = true.

I think this is what you need.
Link Posted: 09-Jul-2007 20:01
Thanks for your help !!

Is it possible to do the same with \"selected node\", only last nodes can be selected ????
Link Posted: 09-Jul-2007 22:35
Yes, just set the yourNewNodeType.CanBeSelected to true, while having treeview.CanBeSelected equal to false.