Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Templates

This sample demonstrates the use of the template technology found in the ASPxSiteMapControl. Template types available in the site map control provide 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)