Home - Forums-.NET - FlyTreeView (ASP.NET) - SetNodeTypeId on client side for node in the tree

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

SetNodeTypeId on client side for node in the tree
Link Posted: 25-May-2011 08:31
Is it possible to change nodetype id on client for node that is already in tree? In the documentation it is written: "Can be applied only to nodes without owner treeview (detached)". How to do it in my case? How to detach and attach the node, if it's needed?
Link Posted: 25-May-2011 09:43
It depends on the nodetype (server templates would not work).
Generally, you can try to remove() node, then call setNodeTypeID, and then add it back to the treeview.

If you experience difficulties with this, you can remove old node, and create a new one (with JavaScript) with the same text and required node type.