New to Telerik Document ProcessingStart a free 30-day trial

Contract for data validation rules that validate cell values and provide input prompts and error alerts.

Definition

Methods

Evaluates whether the specified cell value satisfies the validation rule and returns the validation result.

C#
bool Evaluate(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
Parameters:worksheetWorksheet

The worksheet.

rowIndexint

Index of the row.

columnIndexint

Index of the column.

cellValueICellValue

The cell value.

Returns:

bool

Retrurns True if the rule is satisfied, else returns False.

Properties

Descriptive text in the error alert explaining why the input was rejected.

C#
string ErrorAlertContent { get; }
Property Value:

The content of the error alert.

Title text displayed in the error alert dialog when validation fails.

C#
string ErrorAlertTitle { get; }
Property Value:

The error alert title.

Severity level of the error alert, determining whether invalid input is blocked or allowed.

C#
ErrorStyle ErrorStyle { get; }
Property Value:

The error style.

Descriptive text in the input prompt explaining valid values or constraints to the user.

C#
string InputMessageContent { get; }
Property Value:

The content of the input message.

Title text displayed in the input prompt when the user selects a validated cell.

C#
string InputMessageTitle { get; }
Property Value:

The input message title.

Indicates whether an error alert is displayed when the user enters invalid data.

C#
bool ShowErrorMessage { get; }
Property Value:

The value indicating whether an input message should be shown.

Indicates whether an input prompt is displayed when the cell is selected, guiding users on valid input.

C#
bool ShowInputMessage { get; }
Property Value:

The value indicating whether an input message should be shown.