ASPxClientGridView.ExpandRow(visibleIndex) Method
Expands the specified group row and optionally its child group rows at all nesting levels.
Declaration
ExpandRow(
visibleIndex: number,
recursive?: boolean
): void
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | number | The row’s visible index. |
recursive | boolean |
|
Remarks
Call the client-side ExpandRow(visibleIndex)
or CollapseRow(visibleIndex) method to expand or collapse the specified group row.
To expand or collapse all group rows in the grid on the client side, call the ExpandAll or CollapseAll methods.
For more information on grouping in the grid, refer to the following topic: ASPxGridView - Group Data.
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid">
<%--...--%>
<Settings ShowGroupPanel="true" />
</dx:ASPxGridView>
// Expands the first row and keeps the collapsed state of its child group rows
grid.ExpandRow(0);
// Expands the first row and keeps the collapse state of its child group rows
grid.ExpandRow(0, false);
// Expands the first row and all its child group rows
grid.ExpandRow(0, true);
See Also