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

How to get nestedradgrid id in code behind

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Coolbudy
Top achievements
Rank 1
Coolbudy asked on 05 Jul 2013, 09:51 AM
I never used before the nested radgrid but now i want to apply in my project but i have confusion that how to bind the nested radgrid ?
so any budy have guidance or demo than help me

<telerik:RadGrid ID="outerRadGrid"  runat="server"
        ShowGroupPanel="True">
        <MasterTableView  AllowMultiColumnSorting="True"  GroupLoadMode="Server">
            <Columns>
               <%--Stuff--%>
               <telerik:GridBoundColumn DataField="ModuleName" HeaderText="ModuleName" ></telerik:GridBoundColumn>
            </Columns>
            <NestedViewSettings >
                <ParentTableRelation>
                    <%--<telerik:GridRelationFields DetailKeyField="sysid" MasterKeyField="MatNo" />--%>
                   
                </ParentTableRelation>
            </NestedViewSettings>
            <NestedViewTemplate>

            <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
               <div class="contactWrap">
               
                <telerik:RadGrid ID="innerradgrid"  runat="server">
                    <MasterTableView AutoGenerateColumns="False" >
                      <%--Stuff--%>
                      <Columns>
                      
                      <telerik:GridBoundColumn  DataField="Title" HeaderText="Description"  FooterText="Total Time Spent"   />
                      
                      </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
                </div>
            </asp:Panel>

            </NestedViewTemplate>
        </MasterTableView>
    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jul 2013, 10:07 AM
Hi Coolbudy,

Please have a look at this demo on Programmatic binding to display hierarchical RadGrid data.

Thanks,
Shinu.
Tags
General Discussions
Asked by
Coolbudy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or