AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

HierarchyData<(Of <(<'T>)>)> Members

The HierarchyData<(Of <(<'T>)>)> type exposes the following members.

Constructors


  Name Description
Public method HierarchyData<(Of <(<'T>)>)>
Creates a new [HierarchyData{T}] wrapper around the specified model.

Methods


  Name Description
Public method GetChildren
Returns the child nodes of this node as a HierarchicalModelList, recursively wrapping each child in its own HierarchyData<(Of <(<'T>)>)> adapter via [HierarchyConverter.ToHierarchicalModelList{T}]. Called by data-bound controls when expanding a tree node.
Public method GetParent
Returns the parent of this node, wrapped in a new [HierarchyData{T}] adapter. Called by data-bound controls for upward navigation (e.g., breadcrumb rendering).
Public method ToString
Returns the string representation of the underlying data item (via [IModelWithHierarchy{T}.Item]), which data-bound controls may use as default display text.

Properties


  Name Description
Public property HasChildren
Indicates whether this node has any child nodes, determined by checking Children.Count > 0 on the underlying model. Data-bound controls use this to decide whether to render an expand/collapse indicator.
Public property Item
Returns the underlying IModelWithHierarchy<(Of <(<'T>)>)> model. Data-bound controls access this property to retrieve the data object for rendering. Cast the returned object to T to access typed properties.
Public property Path
Returns the hierarchical path of this node. Currently returns String as path-based navigation is not used in the ACSP hierarchy binding model.
Public property Type
Returns the fully qualified type name of the wrapped model. Used for type discrimination when multiple data types appear in the same hierarchical data source.