SpreadsheetBuilder.AutoSaveTimeout(TimeSpan) Method

Gets or sets the timeout for auto-saving.

Namespace: DevExpress.AspNetCore.Spreadsheet

Assembly: DevExpress.AspNetCore.Spreadsheet.v21.1.dll

Declaration

public SpreadsheetBuilder AutoSaveTimeout(
    TimeSpan timeout
)

Parameters

Name Type Description
timeout TimeSpan

The timeout, in milliseconds.

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