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

How to add multiple controls to a node at runtime

1 Answer 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Julie
Top achievements
Rank 1
Julie asked on 14 Jan 2009, 07:14 PM
Hi Support Team,
I would like to know how to add multiple controls to a node at runtime, without losing my node text. 
For instance a user would do the following:
Add a textbox
Then add a label
Then add a radio button
All on the same node,   
Currently I have a button which allows the user to add a control to a node, but do not see how to add multiple controls to the same node. 
I did review the adding Controls to the tree view at runtime.  
Also, if you have an example of how to persist the controls across postbacks that would be great!
Thanks in advance for your help!
Julie 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jan 2009, 08:01 AM
Hi Julie,

Once you add controls to the treenode its text is lost. You can however add a literal control and set its text property to be the Text of the treenode. All controls added dynamically to the node should be recreated by the developer after postback.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Julie
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or