PDA

Click to See Complete Forum and Search --> : TreeNodeTypes - ChildType


StrangerInBeijing
May 20th, 2005, 12:51 AM
Object: Web TreeView Control

TreeNodeType myType = new TreeNodeType();
myType.CheckBox = true;

myTreeView.TreeNodeTypes.Add(myType);
myTreeView.ChildType = "myType";


I'm trying (in code) create a new treenodetype, add it to the treeview's treenodetype collection and then make the treeview use that nodetype

This does nothing to the treeview nodes, no matter if I add the nodes to the treeview before or after this code???

I'm looking for a way to make the ChildType work, as I need to write some test cases for it

Missing something?

StrangerInBeijing
May 21st, 2005, 03:16 AM
anyone?

I also tried to create a treenodetype in the propety window using the given type builder. When I try to select the new treenodetype as a childnodetype, it seems it is not accepted (nothing happens when i click it from the list of available types)