Skip to main content

TreeListSettings.RootValue Property

Gets or sets the value that root nodes contain in the field specified by the TreeListSettings.ParentFieldName property.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public object RootValue { get; set; }

Property Value

Type Description
Object

An object that represents the root value.

Remarks

By default, if a node’s parent field value doesn’t point to any other node, the node is added to the collection of root nodes (TreeListSettings.Nodes).

However, if you specify the RootValue property’s value, only those nodes whose parent field value matches the RootValue are added to the collection of root nodes. If the node’s parent field value doesn’t match the RootValue, and doesn’t point to any other node, this node isn’t displayed within the TreeList.

See Also