Back to Devexpress

NavBarGroupEventArgs Class

aspnet-devexpress-dot-web-c677723f.md

latest2.6 KB
Original Source

NavBarGroupEventArgs Class

Provides data for events which concern manipulations on groups.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class NavBarGroupEventArgs :
    EventArgs
vb
Public Class NavBarGroupEventArgs
    Inherits EventArgs

NavBarGroupEventArgs is the data class for the following events:

Remarks

Objects of the NavBarGroupEventArgs type are used as arguments for the ASPxNavBar.ExpandedChanged and ASPxNavBar.GroupDataBound events generated on the server side.

NavBarGroupEventArgs objects with proper settings are automatically created and passed to the corresponding event handlers.

Example

Note

Refer to the ASPxNavBar - Server-Side API online demo to get the whole code sample.

csharp
protected void ASPxNavBar1_HeaderClick(object sender, NavBarGroupCancelEventArgs e) {
    EventMonitor.TraceEvent(sender, e, "HeaderClick");
    ddlItems.Value = e.Group.Name;

    ChangeCheckBoxLabel();
    cbEnable.Checked = e.Group.Enabled;
    cbVisible.Checked = e.Group.Visible;
    cbSelect.Checked = !e.Group.Expanded;
}
...
aspx
<dx:ASPxNavBar ID="ASPxNavBar1" runat="server" OnHeaderClick="ASPxNavBar1_HeaderClick" ...>
    <Groups>
    ...
    </Groups>
</dx:ASPxNavBar>

Inheritance

Object EventArgs NavBarGroupEventArgs NavBarGroupCancelEventArgs

BootstrapAccordionGroupEventArgs

BootstrapAccordionGroupCancelEventArgs

See Also

NavBarGroupEventArgs Members

DevExpress.Web Namespace