Back to Devexpress

CheckBoxBuilder.EnableThreeStateBehavior(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-checkboxbuilder-dot-enablethreestatebehavior-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

CheckBoxBuilder.EnableThreeStateBehavior(Boolean) Method

Specifies whether users can set the CheckBox state to indeterminate. Mirrors the client-side enableThreeStateBehavior option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public CheckBoxBuilder EnableThreeStateBehavior(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

The option value.

|

Returns

TypeDescription
CheckBoxBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().CheckBox()
    .EnableThreeStateBehavior(true)
)

See Also

CheckBoxBuilder Class

CheckBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace