Back to Devexpress

TreeViewBuilder.SelectNodesRecursive(Boolean) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treeviewbuilder-dot-selectnodesrecursive-x28-system-dot-boolean-x29.md

latest1.4 KB
Original Source

TreeViewBuilder.SelectNodesRecursive(Boolean) Method

Specifies whether all child nodes should be selected when their parent node is selected. Applies only if the selectionMode is 'multiple'. Mirrors the client-side selectNodesRecursive option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder SelectNodesRecursive(
    bool value
)

Parameters

NameTypeDescription
valueBoolean

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()
    .SelectNodesRecursive(true)
)

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace