Free Trial Buy Now

Menu - Data Binding

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

Description

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: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions ship as part of DXperience ASP.NET, Enterprise, and Universal.
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.