RadGrid Dynamic DetailTables

2 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    1 posts
    Member since:
    Nov 2012

    Posted 20 Nov 2012 Link to this post

    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.
  2. Eyup
    Admin
    Eyup avatar
    4073 posts

    Posted 23 Nov 2012 Link to this post

    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.
Back to Top