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

Are Multiple Node Templates?

1 Answer 148 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Greg Duffield
Top achievements
Rank 1
Greg Duffield asked on 12 Dec 2008, 09:24 PM
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

Greg

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 16 Dec 2008, 08:57 AM
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,
Yana
the Telerik team

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