Back to Devexpress

TreeViewBuilder.DataStructure(TreeViewDataStructure) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treeviewbuilder-dot-datastructure-x28-devextreme-dot-aspnet-dot-mvc-dot-treeviewdatastructure-x29.md

latest1.4 KB
Original Source

TreeViewBuilder.DataStructure(TreeViewDataStructure) Method

Notifies the UI component of the data structure in use. Mirrors the client-side dataStructure option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeViewBuilder DataStructure(
    TreeViewDataStructure value
)

Parameters

NameTypeDescription
valueTreeViewDataStructure

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()
    .DataStructure(TreeViewDataStructure.Plain)
)

See Also

TreeViewBuilder Class

TreeViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace