Navigation and Layout - NavBar

Client-Side Functionality

Platform
Platform
Windows
Linux
Mac OS
SQL Server
SQL Server
MSSQL Server
Oracle
InterBase
MySql
DB2
Sybase
Browser
Browser
Internet Explorer
Firefox
Opera
Safari
Netscape
Language
Language
C#
Visual Basic
Object Pascal
J#
C++
v
v

This example demonstrates how to manipulate a navbar control programmatically on the client using our extended client-side functionality. The client-side programmatic interface is available if the EnableClientSideAPI property is set to true or if there is a handler assigned to any client-side event.

In this demo, each group or item of the navbar control is identified using its Name property. In order to obtain a specific navbar group or item by its name on the client, the GetGroupByName or GetItemByName method is used respectively. In this demo, the navbar's AutoCollapse mode is enabled which specifies that only one group can be expanded within the navbar at any point in time. In this mode, the SetActiveGroup method can be used to expand the desired group. (See JS code, the ChangeActiveGroup function)

A specific navbar item can be selected within each group via the SetSelectedItem method by passing it the required item. (See JS code, the ChangeSelectedItem function)

The GroupExpandedChanged function that is a handler of the navbar's ExpandedChanged event (see ASPX and JS code) demonstrates how to synchronize values of the dropdown editors with the expanded group and the group's selected item, if any.

Version: v2013 vol 1.4
Copyright © 2006-2013 Developer Express Inc
Experience the DevExpress Difference Today

All demos ship with full source code and are included in the DevExpress ASP.NET installation. Refer to the Demos and Sample Applications topic to learn more.

To download your free evaluation copy of our award-winning ASP.NET AJAX Controls and MVC Extensions, visit the DevExpress Downloads page

All DevExpress ASP.NET Controls ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions.
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.