Skip to main content

BootstrapAccordion.GroupCommand Event

Fires when a control contained within a templated area of a group raises the Command event.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public event BootstrapAccordionGroupCommandEventHandler GroupCommand

Event Data

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

Property Description
CommandArgument Gets the argument for the command. Inherited from CommandEventArgs.
CommandName Gets the name of the command. Inherited from CommandEventArgs.
CommandSource Gets an object representing the control which forced a postback. Inherited from NavBarGroupCommandEventArgs.
Group Gets a group object related to the event.

Remarks

The Accordion control allows different areas of its groups (such as a group’s client region and header) to be customized through defining templates. A template for a group’s client region can be specified by the ASPxNavBar.GroupContentTemplate or NavBarGroup.ContentTemplate property; a header template can be defined via the ASPxNavBar.GroupHeaderTemplate or NavBarGroup.HeaderTemplate property. A template is a set of HTML elements and controls which constitute a layout for a particular element.

The GroupCommand event is fired when the control contained within a templated group area raises the Command event. The GroupCommand event is commonly used when a specific command name is associated with a button control. This allows you to create multiple button controls within different templated group areas and programmatically determine which button control is clicked.

Write an GroupCommand event handler to perform specific actions each time the Command event is raised by the control contained within any templated area of a group (the group’s client region or header). The GroupCommand event provides a parameter of the BootstrapAccordionGroupCommandEventArgs type.

See Also