If Validating event triggers an error (blank entry), a subsequent attempt to enter data triggers OnActionSuccess on the first keystroke rather than after the Return key
<SfInPlaceEditor Mode="RenderMode.Inline"
Name="CustomValidation"
ValidationRules="Validation"
Type="InputType.Text"
TValue="string">
<InPlaceEditorEvents Validating="OnValidation" OnActionSuccess="OnActionSuccess" TValue="string"></InPlaceEditorEvents>
</SfInPlaceEditor>
@Message
@code {
public string Message { get; set; } = "No Change";
public object Validation = new
{
CustomValidation = new { required = true }
};
private void OnValidation(ValidateEventArgs args)
{
args.ErrorMessage = "Field should not be empty";
}
private void OnActionSuccess(ActionEventArgs args)
{
Message = "Value Changed";
}
}