Skip to main content
All docs
V26.1
  • AutoCorrectEvent Class

    An event that occurs when text is typed in the control.

    Declaration

    export class AutoCorrectEvent extends RichEditEvent<AutoCorrectEventArgs>

    Remarks

    You can define the AutoCorrect event handler either at the server side, at the client side, or at runtime.

    Use the OnAutoCorrect(String) method to specify the event handler.

    @(Html.DevExpress().RichEdit("richEdit")
     .OnAutoCorrect("function(s,e) {console.log('The inserted text is: ' + e.text);}")
     // ...
    

    The event handler receives an argument of the AutoCorrectEventArgs type. The argument’s properties provide information specific to this event.