Back to Devexpress

FormBuilder<T>.ValidationGroup(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-formbuilder-1-dot-validationgroup-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

FormBuilder<T>.ValidationGroup(String) Method

Gives a name to the internal validation group. Mirrors the client-side validationGroup option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FormBuilder<T> ValidationGroup(
    string value
)

Parameters

NameTypeDescription
valueString

The option value.

|

Returns

TypeDescription
FormBuilder<T>

A reference to this instance after the method is called.

|

Remarks

Refer to Validate Multiple Groups for more information.

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Form()
    .ValidationGroup("MyGroup")
)

See Also

FormBuilder<T> Class

FormBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace