SaveDocumentQuestionDialogEnabled Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Determines if a confirmation dialog should be shown before discarding unsaved changes.
Syntax
public bool SaveDocumentQuestionDialogEnabled { get; set; }Public Property SaveDocumentQuestionDialogEnabled As BooleanExamples
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.");
}textControlSettings.SaveDocumentQuestionDialogEnabled = True
If textControlSettings.SaveDocumentQuestionDialogEnabled Then
Console.WriteLine("Save Document Question Dialog Enabled is enabled for Text Control Settings.")
End If