Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SavingEvent Class

An event that allows you to save a document.

#Declaration

TypeScript
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