Skip to main content

ASPxNavBar.HeaderClick Event

Fires when a group header is clicked.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public event NavBarGroupCancelEventHandler HeaderClick

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the command which raised an event should be canceled.
Group Gets a group for which the event is fired. Inherited from NavBarGroupEventArgs.


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