I've tried unsuccessfully to get a UltraTreeNode to stay in edit mode (of the node label itself), after a user makes an edit.
What I've tried is to use the AfterLabelEdit event to check whether the node's name is acceptable via some routine and if not to try and keep the label in edit mode. I've tried calling PerformAction(UltraTreeAction.EnterEditMode, false, false) from within the AfterLabelEdit handler, but this doesn't seem to work.
Any ideas?
Handle the BeforeLabelEdit event and set the Cancel property of the event arguments to true.
Brian - Thanks, although I don't think that's what I'm looking for.
Basically I am allowing the user to add a node to the three. As soon as the node is added I put it into edit mode, so the user can immediately rename it. It's only after the user types in a new name for the node label, that I want to verify it and if it fails my verification, display a message box to that effect and keep the node label in edit mode.
Unless I am misstaken, this needs to occur in the AfterLabelEdit event, since I want to check the label text after it's been entered. Is there a way in this AfterLabelEdit event to tell the node to stay in label edit mode?