Back to Devexpress

DropDownBoxBuilder.IsValid(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-dropdownboxbuilder-dot-isvalid-x28-system-dot-boolean-x29.md

latest1.3 KB
Original Source

DropDownBoxBuilder.IsValid(Boolean) Method

Specifies or indicates whether the editor's value is valid. Mirrors the client-side isValid option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DropDownBoxBuilder IsValid(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
DropDownBoxBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().DropDownBox()
    .IsValid(true)
)

See Also

DropDownBoxBuilder Class

DropDownBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace