
7 Answers, 1 is accepted
I couldn't reproduce the problem in our online examples. I tried this:
$find("RadTreeView1").get_nodes().getNode(0).set_text("Node (a");
Everything went fine - the text was updated and the treeview continued to work as expected.
Could you please give us more details how to reproduce the error?
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

We use the release of 15-4-2008
This is the code we use. On the OnClientNodeEditedEventHandler we get the new text and offer it asynchronous to our database engine. When this call succeeds we set the text of the node with commit changes on.
function
OnClientNodeEditedEventHandler(sender, eventArgs)
{
var node = eventArgs.get_node();
var newValue = node.get_text();
var key = node.get_value();
var ctx = node;
ChangeObjectValue(key,
"Name" , newValue, eventArgs._node._originalText , myHelperID, onSuccess_ChangeObjectValue, onFailed_ChangeObjectValue, ctx);
}
function
onSuccess_ChangeObjectValue(serverResult, node, methodName)
{
if (serverResult.IsSuccessFul != true){
//terugzetten value
node.set_text(serverResult.Name);
}
else{
//servermodel bijwerken
var treeView = $find(RadTreeViewId);
var newText = node.get_text();
treeView.trackChanges();
//server should listen
node.set_text(newText);
treeView.commitChanges();
//server stops listening
var nodeKey = node.get_value();
processConnection(nodeKey);
}
displayMessage(serverResult.IsSuccessFul, serverResult.Message);
}
function
onFailed_ChangeObjectValue(ex, node, methodName)
{
displayMessage(
false,"Error");
}

Here some extra information. The debugger breaks at the following rule:
var
_64=new RegExp(this._originalText,"g");
I think this is javascript from Telerik?

I managed to reproduce this error in the online demo site. De demo I use is Treeview -> Using Client-Side API -> Client-Side events. This are the steps:
Case 1
- Select the node "Sent Items"
- Go to edit mode with F2
- Change node text in "Sent Items("
- Exit edit mode by hit Enter
- Select the node again
- Node automatically goed in edit mode
- Change node text in "Sent Items()"
- Exit edit mode by hit Enter
- Now you get the javascipt error: Expected ')' in regular expression
- next javascript error
- Node text not visible anymore
Case 2
- Select the node "Inbox (14)"
- Go to edit mode with F2
- Change node text in "Inbox (14) aaaa"
- Exit edit mode by hit Enter
- Now the old node text is displayed
Case 3
- Select the node "Sent Items"
- Go to edit mode with F2
- Change node text in "Sent Items()"
- Exit edit mode by hit Enter
- Select the node again
- Node automatically goed in edit mode
- Change node text in "Sent Items() aaa"
- Now the node text changes in "Sent Items() aaa()"
Success!
Please excuse me for the delayed answer.
Indeed tree node editing currently has some problems with certain non-alphanumeric characters. We are working to resolve the issue as soon as possible. The fix will be included in the next official release of RadTreeView, but if you would like to receive a custom build as soon as the problem is fixed, please open a support ticket and let us know.
I'm sorry for the inconvenience.
Best wishes,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

This bug is fixed in our official SP2 release (2008.1.619.35). Please download it from your account and give it a try.
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center