JS

RichEditBuilder.OnGotFocus(String) Method

Assigns an event handler to a client event that occurs when the control receives focus.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v20.1.dll

Declaration

public RichEditBuilder OnGotFocus(
    string callback
)

Parameters

Name Type Description
callback String

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

Returns

Type Description
RichEditBuilder

An object that can be used to further configure the Rich Text Editor.

Remarks

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

You can use the gotFocus property to dynamically add and remove the event's handler on the client side.

See Also