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

get_text() and get_textElement() returns diferent values

3 Answers 109 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 02 May 2008, 10:48 AM

I am trying to set the text of a node using Javascript. but its not setting it propertly.

After set_text() if I call get_text() it returns me the new value - but the value is not displayed on the tree. And the get_textElement() returns me the older value.

Do you know why this may be happening?

-Piyush

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 May 2008, 11:45 AM
Hello Piyush,

I tried to reproduce the problem locally, but to no avail.

I attached a small and running project on the matter. Please download the files and give them a go.

What am I missing?

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Adam
Top achievements
Rank 1
answered on 07 Dec 2008, 06:16 AM
I am experiencing the same problem using 2008.3.1125 - it seems to be related to having " in the text.  It will put a " in the first time, but will not replace text that has a ". 
0
Yana
Telerik team
answered on 08 Dec 2008, 01:45 PM
Hello Adam,

Could you please paste sample code illustrating the issue here? Thanks

Regards,
Yana
the Telerik team

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