TX Text Control .NET Server

SaveDocumentQuestionDialogEnabled Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Determines if a confirmation dialog should be shown before discarding unsaved changes.

Syntax

public bool SaveDocumentQuestionDialogEnabled { get; set; }

Examples

In the current ASP.NET Core integration, SaveDocumentQuestionDialogEnabled is configured through TextControlSettings. The following example sets it while creating the editor configuration.

textControlSettings.SaveDocumentQuestionDialogEnabled = true;
if (textControlSettings.SaveDocumentQuestionDialogEnabled)
{
    Console.WriteLine("Save Document Question Dialog Enabled is enabled for Text Control Settings.");
}