Skip to main content

ValidationRulesFactory.AddAsync() Method

Adds a validation rule that is checked asynchronously. Use async rules for server-side validation.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public AsyncRuleBuilder AddAsync()

Returns

Type Description
AsyncRuleBuilder

An instance of AsyncRuleBuilder.

Remarks

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

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