Skip to main content
JS

RichEditBuilder.OnGotFocus(String) Method

Assigns an event handler to the GotFocus event.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll

Declaration

public RichEditBuilder OnGotFocus(
    string callback
)

Parameters

Name Type Description
callback String

The name of the JavaScript function or the JavaScript function code used to handle the event.

Returns

Type Description
RichEditBuilder

The builder for the Rich Text Editor.

Remarks

The GotFocus event occurs when the control receives focus.

@(Html.DevExpress().RichEdit("richEdit")
 .OnGotFocus("function(s,e) { /* your custom actions */ }")
 // ...
See Also