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

Show DetailTable inside the column of a Grid?

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 07 Jul 2010, 06:44 PM
Is there any way to nest the DetailTable (i.e. child rows) inside a column of each parent item in the grid? (instead of the user having to click on the expand button to show the child rows for each parent item) I want the grid to show each parent along with their children upon page load (the child rows would be embedded in a column within each parent).

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 12 Jul 2010, 02:14 PM
Hi Dave,

RadGrid does not support this scenario off-the-shelf. However, you can easily implement it by using a GridTemplateColumn with another RadGrid in the ItemTemplate. You can bind the nested RadGrid to some data related to the parent grid using its NeedDataSource event.

To demonstrate this approach, I have attached a small test page you can run locally. Simply add it (and the sample data source code file)  to a project and reference the Telerik.Web.UI binaries in it.

Greetings,
Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Dave
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or