We have provided the node text edit functionality using the context menus and If the user enters any special characters while editing the node text we need to do the following things:
1. Cancel the update .
2. Set the focus back to the node in edit mode with the old text showing.
We tried using the eventArgs.set_cancel(true); from the help/samples, that takes care of requirement 1 but not 2.
If I use eventArgs.set_cancel(true); node.startEdit(); the ClientNodeEdited event never gets fired.
I will appreciate if you could provide a way to implement these requirements.
Thanks
Som
1. Cancel the update .
2. Set the focus back to the node in edit mode with the old text showing.
We tried using the eventArgs.set_cancel(true); from the help/samples, that takes care of requirement 1 but not 2.
If I use eventArgs.set_cancel(true); node.startEdit(); the ClientNodeEdited event never gets fired.
I will appreciate if you could provide a way to implement these requirements.
Thanks
Som