Skip to main content

ValidationRulesFactory.AddRange() Method

Adds a validation rule that checks if an editor’s value falls within a specified range.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public RangeRuleBuilder AddRange()

Returns

Type Description
RangeRuleBuilder

A RangeRuleBuilder instance.

Remarks

Refer to Validate Editors Used in Composite Controls for more information.

@(Html.DevExtreme().DataGrid()
    .Columns(columns => {
        columns.Add().ValidationRules(rules => {
            rules.AddRange()
                // call methods to specify nested options
            });
    })
)
See Also