Events in Blazor In-place Editor Component

3 Aug 20211 minute to read

This section explains the list of events of the In-place Editor’s component which will be triggered for appropriate In-place Editor’s actions.

Created

Created event triggers once the component rendering is completed.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents Created="@CreatedHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void CreatedHandler(Object args)
    {
        // Here you can customize your code
    }
}

OnActionBegin

OnActionBegin event triggers before the data submitted to the server.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents OnActionBegin="@OnActionBeginHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void OnActionBeginHandler(ActionBeginEventArgs args)
    {
        // Here you can customize your code
    }
}

OnActionSuccess

OnActionSuccess event triggers when data submitted successfully to the server.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents OnActionSuccess="@OnActionSuccessHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void OnActionSuccessHandler(ActionEventArgs args)
    {
        // Here you can customize your code
    }
}

OnActionFailure

OnActionFailure event triggers when data submission failed.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents OnActionFailure="@OnActionFailureHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void OnActionFailureHandler(ActionEventArgs args)
    {
        // Here you can customize your code
    }
}

ValueChange

ValueChange event triggers when the integrated component value has changed that render based on the type property in the In-place editor.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents ValueChange="@ValueChangeHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void ValueChangeHandler(ChangeEventArgs args)
    {
        // Here you can customize your code
    }
}

Destroyed

Destroyed event triggers when the component gets destroyed.

@using Syncfusion.Blazor.InPlaceEditor

<SfInPlaceEditor>
   <InPlaceEditorEvents Destroyed="@DestroyedHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{

    public void DestroyedHandler(Object args)
    {
        // Here you can customize your code
    }
}