Back to Devexpress

DxAccordion.AfterExpand Event

blazor-devexpress-dot-blazor-dot-dxaccordion-58ae9458.md

latest1.7 KB
Original Source

DxAccordion.AfterExpand Event

Fires after an item was expanded.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[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:

PropertyDescription
CausedByAPIObsolete. Specifies whether an event was triggered by user action or from code.
ItemInfoReturns information about an item related to the event. Inherited from AccordionItemEventArgs.
ReasonReturns the reason why the Accordion item’s expanded 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(AccordionItemStateChangeEventArgs args) {
        // your code
    }
}

See Also

DxAccordion Class

DxAccordion Members

DevExpress.Blazor Namespace