Events in Blazor In-place Editor Component
4 Nov 20251 minute to read
This section describes the events available in the In-place Editor component and when they are raised during typical actions. The events include: Created, OnActionBegin, OnActionSuccess, OnActionFailure, ValueChange, and Destroyed.
Created
Created event is raised after the component has completed rendering.
@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 is raised before data is submitted to the server as part of a save/update action. Use this event for preprocessing tasks such as validation or modifying the request.
@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 is raised when data is successfully submitted to the server and a successful response is received.
@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 is raised when a data submission fails.
@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 is raised when the value of the integrated editor changes, regardless of the editor rendered via the Type property.
@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 is raised when the component is disposed.
@using Syncfusion.Blazor.InPlaceEditor
<SfInPlaceEditor>
<InPlaceEditorEvents Destroyed="@DestroyedHandler" ></InPlaceEditorEvents>
</SfInPlaceEditor>
@code{
public void DestroyedHandler(Object args)
{
// Here, you can customize your code.
}
}