New to Telerik Document ProcessingStart a free 30-day trial

Validates that cell input contains whole numbers (integers) within specified comparison criteria.

Definition

Constructors

Initializes a new WholeNumberDataValidationRule with the specified comparison context.

C#
public WholeNumberDataValidationRule(NumberDataValidationRuleContext context)
Parameters:contextNumberDataValidationRuleContext

The context.

Properties

Indicates that this rule enforces integer values only, rejecting fractional components.

C#
protected override bool RequireWholeNumbers { get; }
Property Value:

The value indicating if the rule requires whole numbers as a result of the expressions.

Overrides: NumberDataValidationRuleBase.RequireWholeNumbers