Back to Devexpress

GridToolbarSettingsAdaptivity.EnableCollapseToSideMenu Property

aspnet-devexpress-dot-web-dot-gridtoolbarsettingsadaptivity-c12c2bfc.md

latest2.5 KB
Original Source

GridToolbarSettingsAdaptivity.EnableCollapseToSideMenu Property

Specifies whether the toolbar should be collapsed to the side menu when the browser window width is changed.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool EnableCollapseToSideMenu { get; set; }
vb
<DefaultValue(False)>
Public Property EnableCollapseToSideMenu As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to collapse the toolbar to the side menu; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableCollapseToSideMenu
GridToolbar

.SettingsAdaptivity .EnableCollapseToSideMenu

|

Remarks

Use the CollapseToSideMenuAtWindowInnerWidth property to specify the maximum browser window inner width when the toolbar collapses its items to the side menu.

aspx
<dx:ASPxGridView runat="server" ID="Grid" ...>
    <Toolbars>
        <dx:GridViewToolbar>
            <SettingsAdaptivity Enabled="true" EnableCollapseToSideMenu="true" 
            CollapseToSideMenuAtWindowInnerWidth="600" />
            <Items>
                <dx:GridViewToolbarItem Command="New" />
                <dx:GridViewToolbarItem Command="Edit" />
                ...
            </Items>
        </dx:GridViewToolbarItem>
        ...
    </Toolbars>
    <Columns>
    ...
    </Columns>    
</dx:ASPxGridView>

Concept

Toolbars

Online Demo

ASPxGridView - Toolbar

See Also

GridToolbarSettingsAdaptivity Class

GridToolbarSettingsAdaptivity Members

DevExpress.Web Namespace