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

Templates with dynamic data

1 Answer 80 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jeremy Jacob
Top achievements
Rank 1
Jeremy Jacob asked on 04 Nov 2009, 06:59 PM
Hello, I am binding a radtreeview to my custom business objects.  I am able to properly display a hierarchy, but I would like to template out the nodes differently, depending on which level I am at.  For example, I need one template for the root nodes, and another template for the first child nodes.  Is this possible?  After searching through documentation and samples, it seems you can either create one "global" template, which applies to all nodes, or template out each node, but this only seems to be possible if you are declaratively building your nodes.

- Edit:
After posting this question, I found another forum post with the same question:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/are-multiple-node-templates.aspx

The example in the download requires generating the templates in code.  Is it possible to build the templates declaratively in the aspx file?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Nov 2009, 01:34 PM
Hello Jeremy,

If you add the nodes on the server, the the different templates also should be created on the server.

All the best,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Jeremy Jacob
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or