Menu

Data Binding

Beverages>
Condiments>
Confections>
Dairy Products>
Grains/Cereals>
Meat/Poultry>
Produce>
Seafood>

This demo illustrates how the MVC Menu can be bound to a Model passed to a View from the Controller. The Bind method is used to bind the Menu to the Model. Note that the MVC Menu can only be bound to hierarchal data sources, and as such, a Model object passed to the Bind method must support the IHierarchicalEnumerable interface.

The DevExpress MVC Menu Extension ships with following data binding methods:

  • Bind(object dataObject);
  • BindToSiteMap(string fileName);
  • BindToSiteMap(string fileName, bool showStartingNode);
  • BindToXML(string fileName);
  • BindToXML(string fileName, string xPath);
Version: v2013 vol 1.4
Copyright © 2006-2013 Developer Express Inc
Experience the DevExpress Difference Today

All demos ship with full source code and are included in the DevExpress ASP.NET installation. Refer to the Demos and Sample Applications topic to learn more.

To download your free evaluation copy of our award-winning ASP.NET AJAX Controls and MVC Extensions, visit the DevExpress Downloads page

All DevExpress ASP.NET Controls ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions.
To obtain pricing information, visit the Pricing Options page, or contact us via email at info@devexpress.com,
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.