Templates with dynamic data

2 posts, 0 answers
  1. Jeremy Jacob
    Jeremy Jacob avatar
    1 posts
    Member since:
    Oct 2009

    Posted 04 Nov 2009 Link to this post

    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?
  2. Yana
    Admin
    Yana avatar
    5015 posts

    Posted 09 Nov 2009 Link to this post

    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.
Back to Top