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

[Solved] Node Values Disappearing

3 Answers 138 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 29 Feb 2008, 08:59 PM
I've created my RadTree server-side and when I edit one of the node values, it updates properly but the other node values disappear.  Would you please tell me what I'm doing wrong?

Thanks,

Jeff

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 03 Mar 2008, 09:17 AM
Hi Jeff,

If you have an event handler to the OnNodeEdit event, you should set the value of the node's Text property to the new text, e.g.:
e.Node.Text = e.Text;

If you do not have an event handler attached to the OnNodeEdit event, you should use the client-side NodeEditing and NodeEdited events to call the
trackChanges and commitChanges methods of the RadTreeView object.

Please, find attached an example page, demonstrating both the approaches.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JJ
Top achievements
Rank 1
answered on 06 Mar 2008, 08:51 PM
I've successfully implemented the server-side, dynamic creation of the nodes as well as editing of the text.  I would now like to use a template instead of the default 'label' that is created in order to edit the text.

I've added the template and it's displaying the correct text, but when I click/check the adjacent checkbox, my values are disappearing again.  Any clues?

Thanks,

Jeff
0
Simon
Telerik team
answered on 10 Mar 2008, 11:56 AM
Hello Jeff Johnson,

Could you prepare a sample project, which demonstrates this behaviour, and send it to us in a formal support ticket? We will investigate it locally in order to find the cause and provide you with a solution or a workaround.

Thank you in advance for your cooperation.

All the best,
Simon
the Telerik team

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