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

[Solved] OnClientNodeEdited

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
icebits
Top achievements
Rank 1
icebits asked on 07 Jan 2008, 09:42 AM
How to use? I can't find it on Help file.  I need old value and new value. Thank you.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Jan 2008, 12:52 PM
Hi icebits,

Actually, we omitted to include this event in the help manual. It is fired right after the node-editing has finished.

There are two client-side events associated with the node-editing:

OnClientNodeEditing and OnClientNodeEdited.

The first one (OnClientNodeEditing) is fired while a TreeNode is being edited. You should hook on this event to obtain the old and new text of the node, like:

function OnClientNodeEditing(sender, args)
{
    var node = args.get_node();
    var oldText = node.get_text();
    var newText = args.get_newText();
}

Hope this helps.

The needed help articles will be added right away. These articles will be included in the forthcoming SP1 release due by the end of the week.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
icebits
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or