On Grid show expand button for DetailItemTemplate

1 Answer 27 Views
Grid
Kadir
Top achievements
Rank 1
Kadir asked on 12 Sep 2022, 08:34 AM | edited on 14 Sep 2022, 02:23 PM

 

<rad:RadGrid ID="rgv" runat="server">
    <MasterTableView>
        <Columns>
            ....
        </Columns>
        <DetailItemTemplate>
            <table width="100%">
                <tr>
                    <td>..
                    </td>
                </tr>
            </table>
        </DetailItemTemplate>

So I can see the details for each row, but I want to hide them and see it when I press the expand button. But how ?

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 14 Sep 2022, 02:29 PM

Hi Kadir,

If you'd like to expand/collapse the template of the Items, you will need to use the NestedViewTemplate. You can see an online example at Hierarchy with Templates.

The DetailItemTemplate is fixed to the rows and is not collapsible. 

Regards,
Attila Antal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Kadir
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or