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.AfterExpand Event

Fires after an item was expanded.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public Action<AccordionItemStateChangeEventArgs> AfterExpand { get; set; }

#Event Data

The AfterExpand event's data class is AccordionItemStateChangeEventArgs. The following properties provide information specific to this event:

Property Description
CausedByAPI Obsolete. Specifies whether an event was triggered by user action or from code.
ItemInfo Returns information about an item related to the event. Inherited from AccordionItemEventArgs.
Reason Returns the reason why the Accordion item’s expansion state changed.

#Remarks

The AfterExpand event fires after an item was expanded. The following code handles this event:

Razor
<DxAccordion AfterExpand="@AfterExpand">
    @* ... *@
</DxAccordion>

@code {
    void AfterExpand() {
        // your code
    }
}
See Also