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

AccordionItemStateChangeEventArgs.CausedByAPI Property

OBSOLETE

This property is obsolete now. Use the Reason property instead.

Specifies whether an event was triggered by user action or from code.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Browsable(false)]
[Obsolete("This property is obsolete now. Use the Reason property instead.")]
public bool CausedByAPI { get; }

#Property Value

Type Description
Boolean

true if an event was triggered from code; otherwise, false.

#Remarks

The following example accesss the CausedByAPI property value:

Razor
<DxAccordion AfterCollapse=@AfterCollapse>
    @* ... *@
</DxAccordion>

@code {
    void AfterCollapse(AccordionItemStateChangeEventArgs args) {
        bool IsUser = args.CausedByAPI;
    }
}
See Also