Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxAccordion.ExpandAll() Method

In This Article

Expands all items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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:

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

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

@code {
    DxAccordion Accordion;
}

See Also