This is a migrated thread and some comments may be shown as answers.

Node Edit

1 Answer 86 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Som
Top achievements
Rank 1
Som asked on 26 Jan 2009, 09:20 PM
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 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Jan 2009, 11:50 AM
Hi Som,

Please find attached simple page which demonstrates how to implement the needed functionality. Download it and give it a try.

Greetings,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Som
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or