Home - Forums-.NET - FlyTreeView (ASP.NET) - basic question on TreeNodes & javascript

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

basic question on TreeNodes & javascript
Link Posted: 26-Aug-2005 09:35
Hi,

It is a basic question, please anybody may answere:
Adding a new node to the nodecollection, I couln't figure out how to declare a new node.

.retrieving the SelectedNode equal:
var myNode=TreeViewMain.SelectedNode;
myNode.AddNode();

the question: how do I have to declare&initialize the new node????
=new

I've got the TreeView licenze, the thing is working like a charme, but the help-files are kept not verry big/detailed.

Anybody may give me a hint/short explanation to: ansa-tree@pop.agri.ch

regards
urs
Link Posted: 29-Aug-2005 18:53
Probably there's the only way to add a new node.

Node.AddNodes(nodesXML);
where nodesXML is a valid XML (like used in NodeSrc)
Here's a DTD for nodes:

  
    Key CDATA #REQUIRED
  Text CDATA #IMPLIED  
  ToolTip CDATA #IMPLIED

  NavigateUrl CDATA #IMPLIED
  NavigateTarget CDATA #IMPLIED
  
  ChildNodeType CDATA #IMPLIED
  NodeType CDATA #IMPLIED
  NodeSrc CDATA #IMPLIED
  Expanded (True|False) #IMPLIED
  ExpandLevel CDATA #IMPLIED
  
  DefaultStyle CDATA #IMPLIED
  HoverStyle CDATA #IMPLIED
  SelectedStyle CDATA #IMPLIED
  SelectedHoverStyle CDATA #IMPLIED

  ImageUrl CDATA #IMPLIED
  SelectedImageUrl CDATA #IMPLIED
  ExpandedImageUrl CDATA #IMPLIED
  SelectedExpandedImageUrl CDATA #IMPLIED
  
  IconSetPath CDATA #IMPLIED
  
  PostBackOnExpand (True|False) #IMPLIED
  PostBackOnCollapse (True|False) #IMPLIED
  PostBackOnSelect (True|False) #IMPLIED
  PostBackOnDeselect (True|False) #IMPLIED
  PostBackOnCheck (True|False) #IMPLIED
  PostBackOnUncheck (True|False) #IMPLIED
  
  SelectExpands (True|False) #IMPLIED
  SelectCollapses (True|False) #IMPLIED
  
  CanBeSelected (True|False) #IMPLIED
  
  IsCheckBox (True|False) #IMPLIED
  
  IsChecked (True|False) #IMPLIED> ]>