Skip to main content

SavingEvent Class

An event that allows you to save a document.

Declaration

export class SavingEvent extends RichEditEvent<SavingEventArgs>

Remarks

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

<script>
 function savingDocument(s,e) {
   e.handled = true;
   console.log(e.base64);
   console.log(e.fileName);
   console.log(e.format);
 }
</script>
@(Html.DevExpress().RichEdit("richEdit")
 .OnSaving("savingDocument")
 // ...

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

See Save a Document for more information.

See Also