Telerik RadGrid Hierarchical - Child table not displaying

Trying to follow along an article to create a hierarchical grid using Telerik RadGrid.

I found when I run my page the detail table does not show. I don't get any errors though. Anyone know why?

Here is the relevant code I believe:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="RadGridMyParent">
                    <telerik:AjaxUpdatedControl ControlID="RadGridMyParent" />

    <telerik:RadGrid ID="RadGridMyParent" runat="server" CellSpacing="0"
        DataSourceID="SQLDataSourceParent" GridLines="None" Skin="Metro"> <MasterTableView AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="SampleNo"
        <telerik:GridTableView runat="server" DataKeyNames="SampleNo"


    <asp:SqlDataSource ID="SQLDataSourceParent" runat="server"
        ConnectionString="<%$ ConnectionStrings:XConnectionString %>"
        SelectCommand="SELECT * FROM [MyParent] ORDER BY [Autonumber]">

    <asp:SqlDataSource ID="SqlDataSourceAnalysis" runat="server"
        ConnectionString="<%$ ConnectionStrings:XConnectionString %>"
        SelectCommand="SELECT * FROM [MySub] WHERE ([SampleNo] = @SampleNo)">
            <asp:Parameter Name="SampleNo" Type="String" />

Open in new window

Who is Participating?
mathew_sConnect With a Mentor Author Commented:
Got it to work. Missed the part to put in the keynames in the parent-table relation box.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.