Skip to main content

Bind NavBar to Data

NavBar can be populated with item information taken from a data source, which can be any object that implements the IHierarchicalEnumerable or IHierarchicalDataSource interface (e.g. SiteMapDataSource, XmlDataSource, etc.).

The NavBar ships with the following data binding methods:

NavBar supports two methods of data retrieval from a specified data source. One involves manually setting specific data-related properties to data source item attribute names. The other, exploits the NavBar’s ability to retrieve data automatically, given that the data source item attributes are named after the property names a NavBar object.

However you choose to proceed, NavBar automatically creates the MVCxNavBarGroup and MVCxNavBarItem objects, and retrieves their property values from corresponding items.

Concepts