aspnetcore-js-devexpress-dot-richedit-c98c92ed.md
An event that occurs when the control loses focus.
export class LostFocusEvent extends RichEditEvent<EventArgs>
You can define the LostFocus event handler either at the server side, at the client side, or at runtime.
Use the OnLostFocus(String) method to specify the event handler.
@(Html.DevExpress().RichEdit("richEdit")
.OnLostFocus("function(s,e){ /* your custom actions */ }")
// ...
Use the lostFocus property to specify the event handler.
const options = DevExpress.RichEdit.createOptions();
options.events.lostFocus = function(s,e) { /* your custom actions */ };
The lostFocus property provides access to the addHandler(handler), removeHandler(handler), and clearHandlers methods that allow you to dynamically add and remove event handlers.
richEdit.events.lostFocus.addHandler(function(s, e) { /* your custom actions */ });
The event handler receives an argument of the EventArgs type.
Event<TSource, TEventArgs> RichEditEvent<TEventArgs> LostFocusEvent
See Also