Back to Devexpress

BootstrapMenu Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-0f272c67.md

latest4.2 KB
Original Source

BootstrapMenu Class

Represents a menu control.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
[DXClientDocumentationProviderWeb("BootstrapMenu")]
[ToolboxTabName("DX.25.2: Bootstrap Controls")]
public class BootstrapMenu :
    BootstrapMenuBase
vb
<ToolboxTabName("DX.25.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapMenu")>
Public Class BootstrapMenu
    Inherits BootstrapMenuBase

Remarks

Note

The BootstrapMenu control provides you with comprehensive client-side functionality implemented using JavaScript code:

The control’s client-side API is enabled if the ASPxMenuBase.EnableClientSideAPI property is set to true, or the ASPxMenuBase.ClientInstanceName property is defined, or any client event is handled.

Example

This example demonstrates the basic functionality of the Menu control.

The image below shows the result:

aspx
<dx:BootstrapMenu runat="server" ShowPopOutImages="true">
    <Items>
        <dx:BootstrapMenuItem Text="Home" IconCssClass="fa fa-home">
            <Items>
                <dx:BootstrapMenuItem Text="News">
                    <Items>
                        <dx:BootstrapMenuItem Text="For Developers">
                        </dx:BootstrapMenuItem>
                        <dx:BootstrapMenuItem Text="Website news">
                        </dx:BootstrapMenuItem>
                    </Items>
                </dx:BootstrapMenuItem>
                <dx:BootstrapMenuItem Text="Our Mission" BeginGroup="true">
                </dx:BootstrapMenuItem>
                <dx:BootstrapMenuItem Text="Our Customers">
                </dx:BootstrapMenuItem>
            </Items>
        </dx:BootstrapMenuItem>
        ...
    </Items>
</dx:BootstrapMenu>

Inheritance

Show 11 items

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxHierarchicalDataWebControl ASPxMenuBase ASPxMenu BootstrapMenuBase BootstrapMenu

See Also

BootstrapMenu Members

DevExpress.Web.Bootstrap Namespace