WidgetFactory<TModel>.ValidationGroup(String) Method
Creates a validation group.
Namespace: DevExtreme.AspNet.Mvc.Factories
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public ValidationGroup ValidationGroup(
string name
)
Parameters
Name | Type | Description |
---|---|---|
name | String | A validation group name. |
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("myGroup")) {
@(Html.DevExtreme().TextBox().Name("Name"))
@(Html.DevExtreme().TextBox().Name("BirthDate"))
}
See Also