Skip to main content

SpreadsheetBuilder.AutoSaveMode(AutoSaveMode) Method

Specifies the auto-saving mode.

Namespace: DevExpress.AspNetCore.Spreadsheet

Assembly: DevExpress.AspNetCore.Spreadsheet.v24.2.dll

Declaration

public SpreadsheetBuilder AutoSaveMode(
    AutoSaveMode mode
)

Parameters

Name Type Description
mode AutoSaveMode

The auto-save mode.

Returns

Type Description
SpreadsheetBuilder

An object that can be used to further configure the Spreadsheet.

Remarks

@(Html.DevExpress().Spreadsheet("spreadsheet")
     .Height("800px")
     .Width("100%")
     .WorkDirectory("~/App_Data/Documents/SampleDocuments")
     .DocumentRequestHandlerUrl(Url.Action("DxDocumentRequest"))
     .Open(documentPath)
     .AutoSaveMode(DevExpress.Web.Office.AutoSaveMode.On)
     //Save a document every 3 minute
     .AutoSaveTimeout(TimeSpan.FromMinutes(3)))
See Also