Back to Devexpress

SavedEvent Class

aspnetcore-js-devexpress-dot-richedit-66259d71.md

latest2.0 KB
Original Source

SavedEvent Class

An event that occurs after a document is saved on the server side.

Declaration

ts
export class SavedEvent extends RichEditEvent<SavedEventArgs>

Remarks

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

cshtml
@(Html.DevExpress().RichEdit("richEdit")
 .OnSaved("function(s,e) {
   if (e.success)
     console.log('The document is successfully processed on the server.');
 }")
 // ...
javascript
const options = DevExpress.RichEdit.createOptions();
options.events.saved = function(s,e) {
  if (e.success)
    console.log('The document is successfully processed on the server.');
};
javascript
richEdit.events.saved.addHandler(function(s, e) {
    if (e.success)
      console.log('The document is successfully processed on the server.');
});

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

See Save a Document for more information.

Inherited Members

addHandler(handler)

clearHandlers

isEmpty

removeHandler(handler)

Inheritance

Event<TSource, TEventArgs> RichEditEvent<TEventArgs> SavedEvent

See Also

Client-Side Events