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

How to add NodeTemplates dynamically for a set of nodes

3 Answers 71 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pradeep Enugala
Top achievements
Rank 1
Pradeep Enugala asked on 21 Dec 2011, 02:39 PM
Hi telerik team,

I'm using the Radtreeview structure in my application.
I have 3 nodes and for each node it has the subnodes.I'm adding the nodes dynamically from code behind.I would like to add Linkbutton and the image controls in the Nodetemplate for each node.

Node1
    --subnode1.1
    --subnode1.2
    --subnode1.3
Node2
    --subnode2.1
    --subnode2.2
Node3
    --subnode3.1
    --subnode3.2
    --subnode3.3
    --subnode3.4
Now for each nodes[Node1,Node2,Node3],i want to add the nodetemplates respectively.Here nodetemplate contains Linkbutton and Imagebutton.
How to add this from codebehind.
Please reply ASAP

Thankyou...




3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 21 Dec 2011, 04:09 PM
Hi Pradeep Enugala,

You can read about Templates and how to set them in Code Behind in the following help article.

All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Pradeep Enugala
Top achievements
Rank 1
answered on 22 Dec 2011, 05:31 AM
Hi Telerik team,

Thankyou for the reply.I'm unable to open the page when clicked on the 'help article' link.
Please find the attached image.

Please provide the solution for this issue.

Thank you..
0
Bozhidar
Telerik team
answered on 23 Dec 2011, 11:06 AM
Hi,

We apologize for the broken link. We will look into why it's showing you the error message.

To answer your question about templates at runtime, I've attached a sample page which demonstrates how you can achieve that.

Kind regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
Pradeep Enugala
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Pradeep Enugala
Top achievements
Rank 1
Share this question
or