Free Trial Buy Now

SiteMap Control - Templates

Description

This sample demonstrates the use of the template technology found in the ASPxSiteMapControl. Template types available in the site map control provide powerful a powerful means by which to transform the control's layout, define non-typical styles for the control's elements and supply the control with specific visual effects.

This demo represents the products section of a site. Each product can have one of the three following states at any point in time - "new", "update", "coming soon".

In order to define a product's type, the type attribute is created in the "~/App_Data/SiteMap/Products.sitemap", as follows:

<siteMapNode ... type="update" />

The ASPxSiteMapControl's NodeTemplate is defined in aspx code so that the representation of the ASPxSiteMapControl can change based on the obtained value of the created type attribute. (See ASPX code)

Version: v2011 vol 2.11
Experience the DevExpress Difference Today
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.