WidgetFactory<TModel>.ValidationGroup() Method

Creates a validation group.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ValidationGroup ValidationGroup()

Returns

Type Description
ValidationGroup

A ValidationGroup instance that ends the validation group when disposed.

Remarks

Refer to Validate Multiple Groups for more information.

@using(Html.DevExtreme().ValidationGroup()) {
    @(Html.DevExtreme().TextBox().Name("Name"))
    @(Html.DevExtreme().TextBox().Name("BirthDate"))
}
See Also