This is a migrated thread and some comments may be shown as answers.
RadGrid Dynamic DetailTables
1 Answer 31 Views
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 20 Nov 2012, 01:43 PM
Hello,

I want to know if there is any way I can dynamically add a Detail Table between a Rad Grid and another Detail Table.
The structure would be the following:

Before addition:
<RadGrid>
<DetailTable ID="1">
</DetailTable>
</RadGrid>

After addition:
<RadGrid>
<DetailTable ID="2">
<DetailTable ID="1">
</DetailTable>
</DetailTable>
</RadGrid>

The Rad Grid and the detail tables feed from their own objectdatasource.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Nov 2012, 09:28 AM
Hi Sebastian,

The way you are configuring your grid structure programmatically depends on whether you do it on Page_Init or Page_Load. Please closely follow the tips provided in the following topic:
http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html#Section4

I believe it will be very helpful if you check out this demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/autogeneratedhierarchy/defaultcs.aspx

In addition, you could change the grid columns dynamically using the approach provided in the article below:
http://www.telerik.com/help/aspnet-ajax/grid-changing-structure-dynamically.html

I hope this will prove helpful.

All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or