Hi
I want the user to add a node dynamically and able to edit the node text simillar to adding a new folder in windows explorer, when the folder is added it, the folder name is in edit mode allowing the user to change the folder name I want to achieve the same in ultratree.
Also the user wants to rename a exisiting node. Is it possible in ultratree?
any help much appreicated.
vinodhkuma, did you get the problem resolved? I have the same problem as yours.
You may need to set focus to the tree before you call BeginEdit.
Also, have you changed the ViewStyle of your tree? I beleive BeginEdit only works in Standard ViewStyle. If you tree nodes have multiple column, then you probably need to set the ActiveCell and call PerformAction(EnterEditMode).
Maybe you need to set AllowCellEdit = AllowCellEdit.Full on Column
Thanks Brian, But when I call ultratree.ActiveNode.BeginEdit(), it does nothing. I am unable to edit the node name, do I have to specify a editor in the override?, if so whats the suitable editor for changing text(the node name is pure text)
You can add root nodes using the UltraTree.Nodes.Add method, and you can add child nodes using the UltraNode.Nodes.Add method. Use the UltraTreeNode.BeginEdit method to programmatically enter edit mode on a node.