Telerik RadGrid Hierarchical - Child table not displaying

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

http://www.telerik.com/help/aspnet-ajax/grid-hierarchy-tutorial.html

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:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGridMyParent">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridMyParent" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>


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



...blah...blah...

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

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

Open in new window

LVL 1
mathew_sAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mathew_sAuthor Commented:
Got it to work. Missed the part to put in the keynames in the parent-table relation box.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.