Are Multiple Node Templates?

2 posts, 0 answers
  1. Greg Duffield
    Greg Duffield avatar
    38 posts
    Member since:
    Feb 2006

    Posted 12 Dec 2008 Link to this post

    I would like to use a treeview to show a grouped list of resource. So I would like the root nodes to show something like:-
    + Resource Type A (12)
    + Resource Type B (2)
    etc etc

    But I would like to have the child nodes of these root nodes to have a different template in this case it could be a Listview etc so that IO can control how they will appear on the screen.

    I know that I can create the nodes server side but I can only create 1 server side template that is applied to all nodes (or so it seems) and while I can specify 2 templates on the design surface (Global) and (per defined Node Type) I do not see how I can do this when I am databinding. As in this case I am databinding to 2 datatables, one with the summary information and the other containing the detail information. I appreciate that this may not be clear, if you need me to clarify anything on this please let me know.

    In essence I would like to show a treeview showing the summary and then something like a listview or grid for the child nodes.....

    Any help guidance or wisdom would be much appreciated.

    Many Thanks

  2. Yana
    Yana avatar
    4807 posts

    Posted 16 Dec 2008 Link to this post

    Hi Greg,

    I am sorry for the delayed reply.

    I've prepared a sample project which demonstrates the needed approach. Please download the attached file and give it a try. If you have any further questions, don't hesitate to write to us again.

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top