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
1270
Fire ValidateLabelEdit when new node text has not changed?
posted

Hi

My users can add new nodes to a tree, and I add new nodes with a default name "New Node" and put the node in edit mode so the user is urged to rename the new node.  I use the ValidateLabelEdit event to ensure the name is unique in the tree.

However, if the user adds a new user but doesn't change the name, the new node in the tree is called "New Node".  Which means when a second new node is added and the user doesn't change the name, a duplicate exists.

The problem I have is that the ValidateLabelEdit event doesn't fire.  How can I make the ValidateLabelEdit event fire when the user hasn't modified the tree node name?

Thanks

James

Parents Reply Children
No Data