AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

HierarchicalModelDataSource<(Of <(<'T>)>)>..::..GetHierarchicalView Method

Returns the HierarchicalModelDataSourceView that provides the root-level hierarchy nodes to data-bound controls. The view is created lazily on the first call by converting DataSource into a HierarchicalModelList and is cached for subsequent calls.

Namespace:  AdvantageCSP.HierarchicalModelDataSource
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public HierarchicalDataSourceView GetHierarchicalView(
	string viewPath
)

Parameters

viewPath
Type: String
The hierarchical path of the view to retrieve. Ignored in this implementation because the data source exposes a single flat-to-tree view of the entire collection.

Return Value

A HierarchicalModelDataSourceView whose Select() method returns the root-level HierarchyData<(Of <(<'T>)>)> nodes.