Free Trial Buy Now

NavBar - Templates

ASPxGrid Interactive Lessons

Show details
Show details
Show details
Show details
Show details
Show details

Description

This sample demonstrates the use of the template technology in the ASPxNavBar control. The look of each basic element of the navbar control can be completely changed by creating a specific template which defines how the element will be rendered by a client browser.

The navbar control is bound to an XmlDataSource object that retrieves data stored in a specific xml file. The navbar's GroupDataBound event is handled to assign a specific group content template to the ContentTemplate property of a group when it is being bound to its data. (See VB or C# code)

ContentTemplate.ascx represents a UserControl that supports the ITemplate interface by implementing the InstantiateIn method and contains a set of child controls which compose the group contents based upon the required design.

The DataBindContentUserControl method (see VB or C# code) demonstrates how the UserControl's child controls can be bound to the required data passed to the GroupDataBound event.

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.