Skip to main content

DxAccordion.ExpandAll() Method

Expands all items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public void ExpandAll()

Remarks

The component may only allow a single expanded item at a time. See the ExpandMode property description for details.

The following code snippet expands all Accordion items on button click:

<DxButton Text="Expand All" Click="@(() => Accordion.ExpandAll())"></DxButton>

<DxAccordion @ref="Accordion">
    <Items>
        @* ... *@
    </Items>
</DxAccordion>

@code {
    DxAccordion Accordion;
}

Accordion: ExpandAll

See Also