Free Trial Buy Now

SiteMap Control - Data Binding

v
v

Description

This demo illustrates the binding of an ASPxSiteMapControl to a data source. The ASPxSiteMapControl supports standard data binding options. In this instance any object which implements the IHierarchicalEnumerable or IHierarchicalDataSource interface (e.g. SiteMapDataSource, XmlDataSource) may be used as a data source for this control.

In this demo, the site map control is bound to a data source of type ASPxSiteMapDataSource. The ASPxSiteMapDataSource is connected with a specific SiteMapProvider. This provider is registered in the web.config file where it's pointed to the file from which to obtain the site map data. Note that the ASPxSiteMapDataSource extends the functionality of a standard site map data source component by allowing the site map data to be loaded from a specific file without assigning a site map provider to the SiteMapProvider property.

<siteMap>
    <providers>
        <add name="ProductsWebSiteProvider" type="System.Web.XmlSiteMapProvider"
            siteMapFile="SiteMapProducts.sitemap"/>
        <add name="MenuSiteMapProvider" type="System.Web.XmlSiteMapProvider"
            siteMapFile="~/App_Data/Menu.sitemap"/>
    </providers>
</siteMap>

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 ASP.NET Controls 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.