New to Telerik Document ProcessingStart a free 30-day trial

Base class providing common configuration for data validation rules including input prompts and error alerts.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.DataValidation

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public abstract class DataValidationRuleContextBase

Inheritance: objectDataValidationRuleContextBase

Derived Classes: AnyValueDataValidationRuleContextSingleArgumentDataValidationRuleContext

Constructors

Initializes a new context with default settings for input and error messages.

C#
protected DataValidationRuleContextBase()

Properties

The content text displayed in the error alert dialog.

C#
public string ErrorAlertContent { get; set; }
Property Value:

The content of the error alert.

The title displayed in the error alert dialog.

C#
public string ErrorAlertTitle { get; set; }
Property Value:

The error message title.

The severity style of the error alert, controlling whether invalid input is blocked or only warned.

C#
public ErrorStyle ErrorStyle { get; set; }
Property Value:

The error style.

The content text displayed in the input message prompt.

C#
public string InputMessageContent { get; set; }
Property Value:

The content of the input message.

The title displayed in the input message prompt.

C#
public string InputMessageTitle { get; set; }
Property Value:

The input message title.

Whether to display an error alert when invalid data is entered.

C#
public bool ShowErrorMessage { get; set; }
Property Value:

The value indicating whether an input message should be shown.

Whether to display an input message when the cell is selected.

C#
public bool ShowInputMessage { get; set; }
Property Value:

The value indicating whether an input message should be shown.