Back to Devexpress

TreeViewBuilder.ShowCheckBoxesMode(TreeViewCheckBoxMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treeviewbuilder-dot-showcheckboxesmode-x28-devextreme-dot-aspnet-dot-mvc-dot-treeviewcheckboxmode-x29.md

latest1.4 KB
Original Source

TreeViewBuilder.ShowCheckBoxesMode(TreeViewCheckBoxMode) Method

Specifies the checkbox display mode. Mirrors the client-side showCheckBoxesMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder ShowCheckBoxesMode(
    TreeViewCheckBoxMode value
)

Parameters

NameTypeDescription
valueTreeViewCheckBoxMode

The option value.

|

Returns

TypeDescription
TreeViewBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().TreeView()
    .ShowCheckBoxesMode(TreeViewCheckBoxMode.None)
)

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace