Back to Devexpress

ASPxNavBar.HeaderClick Event

aspnet-devexpress-dot-web-dot-aspxnavbar-a45f2789.md

latest2.0 KB
Original Source

ASPxNavBar.HeaderClick Event

Fires when a group header is clicked.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event NavBarGroupCancelEventHandler HeaderClick
vb
Public Event HeaderClick As NavBarGroupCancelEventHandler

Event Data

The HeaderClick event's data class is NavBarGroupCancelEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the command which raised an event should be canceled.
GroupGets a group for which the event is fired. Inherited from NavBarGroupEventArgs.

Remarks

Write a HeaderClick event handler to perform specific actions on the server side each time a group’s header is clicked within the navbar control. Note that this event fires immediately after the left mouse button is released. If the button is released when the mouse pointer is not over a header, the event doesn’t fire. You can use the event parameter’s properties to identify the group whose header is being clicked and cancel the execution of the command, if necessary.

See Also

ItemClick

Navigation Bar

ASPxNavBar Class

ASPxNavBar Members

DevExpress.Web Namespace