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

SavingEventArgs Class

Provides data for an event that occurs when a file is about to be saved.

Declaration

export class SavingEventArgs extends EventArgs

Remarks

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

Inheritance

EventArgs
SavingEventArgs

Properties

base64 Property

The file content that is encoded with base64 digits.

Declaration

base64: string

Property Value

Type Description
string

The file content.

fileName Property

The name of the file to save.

Declaration

fileName: string

Property Value

Type Description
string

The file name.

format Property

The format of the file to save.

Declaration

format: DocumentFormat

Property Value

Type Description
DocumentFormat

The document format.

handled Property

Specifies whether the event is handled.

Declaration

handled: boolean

Property Value

Type Description
boolean

true, if the event is handled and further processing is not required; otherwise false.

reason Property

Specifies the reason why the document saving process starts.

Declaration

reason: string

Property Value

Type Description
string

A value that identifies the reason.