Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Collapse]DevExpress.Web.ASPxSpreadsheet
   [Collapse]ASPxSpreadsheet Class
     ASPxSpreadsheet Members
     ASPxSpreadsheet Constructor
    [Collapse]ASPxSpreadsheet Properties
      ActiveTabIndex Property
      AssociatedRibbonID Property
      AutoSaveMode Property
      AutoSaveTimeout Property
      ClientInstanceName Property
      ClientSideEvents Property
      ConfirmOnLosingChanges Property
      Document Property
      DocumentId Property
      EnableClientSideAPI Property
      Enabled Property
      FullscreenMode Property
      Images Property
      ImagesFileManager Property
      RaiseEventsOnModificationsViaAPI Property
      ReadOnly Property
      RibbonContextTabCategories Property
      RibbonKeyboardSupport Property
      RibbonMode Property
      RibbonTabs Property
      SettingsDialogForm Property
      SettingsDialogs Property
      SettingsDocumentSelector Property
      SettingsForms Property
      SettingsLoadingPanel Property
      ShowConfirmOnLosingChanges Property
      ShowFormulaBar Property
      ShowSheetTabs Property
      Styles Property
      StylesButton Property
      StylesEditors Property
      StylesFileManager Property
      StylesFormulaAutoCompete Property
      StylesFormulaBar Property
      StylesPopupMenu Property
      StylesRibbon Property
      StylesTabControl Property
      TemporaryFolder Property
      WorkDirectory Property
      WorksheetDisplayArea Property
    [Expand]ASPxSpreadsheet Events
    [Expand]ASPxSpreadsheet Methods
   [Expand]ASPxSpreadsheetLoadingPanelSettings Class
   [Expand]ASPxSpreadsheetSettingsBase Class
    InitializeDocumentEventHandler Delegate
    SaveFileDialogDisplaySectionMode Enumeration
   [Expand]SpreadsheetClientSideEvents Class
   [Expand]SpreadsheetDialogFormSettings Class
   [Expand]SpreadsheetDialogSettings Class
   [Expand]SpreadsheetDocumentSelectorCommonSettings Class
   [Expand]SpreadsheetDocumentSelectorSettings Class
   [Expand]SpreadsheetFileManagerCommonSettings Class
   [Expand]SpreadsheetFileManagerEditingSettings Class
   [Expand]SpreadsheetFileManagerFoldersSettings Class
   [Expand]SpreadsheetFileManagerUploadSettings Class
   [Expand]SpreadsheetFileManagerValidationSettings Class
   [Expand]SpreadsheetFormsSettings Class
   [Expand]SpreadsheetFormulaAutoCompeteStyles Class
   [Expand]SpreadsheetFormulaBarButtonImageProperties Class
   [Expand]SpreadsheetFormulaBarButtonSectionStyles Class
   [Expand]SpreadsheetFormulaBarStyles Class
   [Expand]SpreadsheetImages Class
   [Expand]SpreadsheetInitializeDocumentEventArgs Class
   [Expand]SpreadsheetInsertLinkDialogSettings Class
   [Expand]SpreadsheetInsertPictureDialogSettings Class
   [Expand]SpreadsheetRibbonContextTabCategoryCollection Class
    SpreadsheetRibbonMode Enumeration
   [Expand]SpreadsheetRibbonTabCollection Class
   [Expand]SpreadsheetSaveFileDialogSettings Class
   [Expand]WorksheetDisplayArea Class
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxSpreadsheet.ShowConfirmOnLosingChanges Property

Gets or sets a value that specifies whether a confirmation alert should be displayed when any unsaved changes are going to be lost due to an end-user action.

Namespace:DevExpress.Web.ASPxSpreadsheet
Assembly:DevExpress.Web.ASPxSpreadsheet.v17.2.dll

Expanded Syntax

Property value

Type: Boolean
true, to display the confirmation alert; otherwise, false.
The default is true.

Expanded Remarks

Use the ShowConfirmOnLosingChanges property to disable/enable a confirmation alert displayed when an end-user tries to perform an action that might force the ASPxSpreadsheet to lose any currently unsaved data. For instance, an end-user can modify data within a worksheet and then click the File - New button. As a result, an alert to confirm losing changes will appear.

Note

The confirmation alert cannot be displayed on iOS devices due to their limitations. Safari for mobile devices does not the provide necessary events that can be used for displaying the confirmation message.

Note

When the ShowConfirmOnLosingChanges property is set to true, the JavaScript code contained within the href link attribute is not executed in Internet Explorer. To learn more, see the Links / "A" tags do not work in IE together with GridView in Batch Edit Mode / SpreadSheet / RichEdit Knowledge Base Article.

Expanded See Also

How would you rate this topic?​​​​​​​