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

Changing node name to contain an ampersand

1 Answer 81 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 03 Jul 2008, 03:13 PM
I am try to write some code to validate the names given to folders in a tree view.  I am doing this using the OnClientNodeEditting and the OnClientNodeEditted event handlers.  In the OnClientNodeEditting handler I am checking the name that the user has given for special characters, and if so changing a global variable back to the old text such that in the OnClientNodeEditted method I can set the text back if need be. 

This works well, except for the case when the user uses an ampersand.  The TreeView behaves unexpectedly when I attempt to call set_text() on the node.   It does not properly set the value of the node, it seems like somewhere the ampersand it being HTML encoded from & to & which causes the set_text() method to not properly set the new node name.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 07 Jul 2008, 11:17 AM
Hi Ryan,

We already fixed the problem. You can open a support ticket to obtain the latest DEV version or you can wait for the Futures build which we will release tomorrow. It will contain some new and exciting features and it will be available for download from your Client.Net account.


I hope this helps.

Sincerely yours,
Veskoni
the Telerik team

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