Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Force label edit to stay in edit mode??
posted

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?

Parents
  • 69832
    Offline posted

    Handle the BeforeLabelEdit event and set the Cancel property of the event arguments to true.

Reply Children