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

[Solved] Hierarchical grid - new demo

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 16 Feb 2010, 03:49 PM
Hello support,

Is it possible to add a tabstrip into the edit forms of the parent and / or children using the hierarchical grid entry found in the demo here?  For that matter, is it possible to create an edit form at all in the hierarchical grid entry grid?

If so, could you explain how to do so to some degree.   

Thanks for your anticipated help.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 18 Feb 2010, 10:34 AM
Hi Josh,

This is possible by using the EditFormSettings.FormTemplate template property of the parent and detail table view. Your mark-up should look like the following:

<telerik:RadGrid ID="RadGrid1" AllowPaging="true" runat="server" DataSourceID=".................">
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="........." DataSourceID="..............">
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <%--RadTabStrip and any other controls needed for the edit form of the MasterTableView
                go here.--%>
            </FormTemplate>
        </EditFormSettings>
                <Columns>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn .........>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn .........>
                    </telerik:GridBoundColumn>
                    .
                    .
                    .
                </Columns>
        <DetailTables>
            <telerik:GridTableView DataSourceID=".............." DataKeyNames="..........." AutoGenerateColumns="false">
                <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                       <%-- RadTabStrip and any other controls needed for the edit form of the MasterTableView
                        go here.--%>
                    </FormTemplate>
                </EditFormSettings>
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField=".............." MasterKeyField="............." />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn .........>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn .........>
                    </telerik:GridBoundColumn>
                    .
                    .
                    .
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

I hope this helps.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or