Back to Devexpress

TreeListBuilder<T>.RootValue(Object) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-treelistbuilder-1-dot-rootvalue-x28-system-dot-object-x29.md

latest1.3 KB
Original Source

TreeListBuilder<T>.RootValue(Object) Method

Specifies the root key. Applies if dataStructure is 'plain'. Mirrors the client-side rootValue option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TreeListBuilder<T> RootValue(
    object value
)

Parameters

NameTypeDescription
valueObject

The option value.

|

Returns

TypeDescription
TreeListBuilder<T>

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().TreeList()
    .RootValue("MyRootValue")
)

See Also

TreeListBuilder<T> Class

TreeListBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace