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

Node Editing

1 Answer 72 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Russell Mason
Top achievements
Rank 1
Russell Mason asked on 01 Dec 2008, 06:05 PM
Hi

Is it possible to detect (and run a javascript function) when a TreeNode goes into edit? The OnClientEditing event fires after the edit box appears and the user has changed text and then goes to commit the change. I would like to change the text prior to the user being able to type (i.e. the node text displays more than the 'editiable' text). I would also like to know if the user canceled the change (presses Esc). Any ideas/best practices.

Thanks
Russell Mason

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 05 Dec 2008, 12:39 PM
Hi Russell Mason,

We are in a process of implementing a new client event which fires right after the user has double clicked the node to edit it /or pressed F2/. In this event you will be able to change the text of the node.

Currently, when the user presses Esc button - no event is fired, because the old text of the node is returned back and the edit is canceled.

Stay tuned for the next official release.

Best wishes,
Veselin Vasilev
the Telerik team

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