Skip to main content

Bind Popup Menu to Data

A PopupMenu 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 PopupMenu ships with the following data binding methods:

A PopupMenu 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 PopupMenu’s ability to retrieve data automatically, given that the data source item attributes are named after the property names a PopupMenu object.

However you choose to proceed, a PopupMenu automatically creates the MVCxMenuItem objects, and retrieves their property values from corresponding items.

Concepts