Skip to main content
A newer version of this page is available. .
JS

RichEditBuilder.OnLostFocus(String) Method

Assigns an event handler to the LostFocus event.

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public RichEditBuilder OnLostFocus(
    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 LostFocus event occurs when the control loses focus.

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