MenuItem.BeginGroup Property

Gets or sets a value that specifies whether the current menu item starts a group.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll


public bool BeginGroup { get; set; }

Property Value

Type Default Description


true if the current menu item starts a group; otherwise, false.


Use the BeginGroup property to control whether a specific separator should appear before the current menu item to separate it from other menu items.

The separator’s appearance can be customized either centrally at the menu control level via the ASPxMenuBase.SeparatorBackgroundImage, ASPxMenuBase.SeparatorColor, ASPxMenuBase.SeparatorPaddings and ASPxMenuBase.SeparatorWidth properties or via the MenuStyle.SeparatorBackgroundImage, MenuStyle.SeparatorColor, MenuStyle.SeparatorPaddings and MenuStyle.SeparatorWidth properties available by the corresponding style settings of sub-menus.


This example demonstrates how the checked state of items can be manipulated to emulate the toolbar behavior (using the ASPxMenu control).

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=, Culture=neutral, 
    Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dxm" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"