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

[Solved] GridTableView.NestedViewTemplate

7 Answers 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe Loux
Top achievements
Rank 1
Joe Loux asked on 09 May 2008, 07:14 PM
Are there any good examples of using the NestedViewTemplate?  My problem is this: 

I've created a Template and assigned it to a grid. No problems there, test contents of the template (a label) rendered fine.  Now what I'm trying to do is render the DetailTables inside the template.  I pass in the MasterTableView of the grid in order to have access to the child views.  Any way to use those existing views to create the child grids, or at least render the views? 

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 May 2008, 09:04 AM
Hi Joe,

Generally NestedViewTemplate will replace default detail GridTableView however you can place in the template anything you want even new RadGrid. I have attached small example to illustrate you this.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joe Loux
Top achievements
Rank 1
answered on 15 May 2008, 06:49 PM
Thanks for the reply. I understand that any controls can be placed inside of the NestedView, but I need to render the detail tables that are created when the parent-child relationships are set up.
0
Shinu
Top achievements
Rank 2
answered on 16 May 2008, 07:50 AM
Hi Joe,

Go through the following help articles to get details about Grid Hierarchy.

What you should know
Understanding hierarchical grid structure

Shinu.
0
Joe Loux
Top achievements
Rank 1
answered on 20 May 2008, 07:49 PM
Thanks for the reply. I have already set up the relationships between the MasterTableView and the DetailTableViews and they are working fine.  What I am trying to accomplish is the rendering of each DetailTableView inside of a RadPanelItem. That way, the individual detail grids could be hidden/shown as needed.
0
Yavor
Telerik team
answered on 21 May 2008, 05:28 AM
Hello Joe,

While there is no easy and straightforward way to achieve such a rendering, with a standard hierarchy, you may consider a different approach. First, you may consider a detailTemplate. Alternatively, depending on your requirement, you may choose to relate the grids.
I hope one of these options is feasible for you.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joe Loux
Top achievements
Rank 1
answered on 22 May 2008, 03:14 PM
I've been looking at the relate grids example and was wondering if there are any examples of accomplishing the same type of functionality in the code behind using NeedDataSource
0
Sebastian
Telerik team
answered on 23 May 2008, 06:30 AM
Hello Joe,

I think that the sample project from this forum post will help you accomplish the same task using NeedDataSource handling:

http://www.telerik.com/community/forums/thread/b311D-gggbd.aspx

You merely need to replace the grids in it with their ASP.NET AJAX counterpart.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Joe Loux
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Joe Loux
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Yavor
Telerik team
Sebastian
Telerik team
Share this question
or