Skip to main content
A newer version of this page is available. .
Tab

GridToolbarSettingsAdaptivity.Enabled Property

Specifies whether an adaptive behavior is enabled for the toolbar.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool Enabled { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to enable the adaptive behavior; otherwise, false

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Enabled
ASP.NET Controls and MVC Extensions TreeListToolbar
.SettingsAdaptivity .Enabled
CardViewToolbar
.SettingsAdaptivity .Enabled
GridToolbar
.SettingsAdaptivity .Enabled
GridViewToolbar
.SettingsAdaptivity .Enabled
VerticalGridToolbar
.SettingsAdaptivity .Enabled
ASP.NET MVC Extensions MVCxCardViewToolbar
.SettingsAdaptivity .Enabled
MVCxGridViewToolbar
.SettingsAdaptivity .Enabled
MVCxTreeListToolbar
.SettingsAdaptivity .Enabled
MVCxVerticalGridToolbar
.SettingsAdaptivity .Enabled

Remarks

When the Enabled property is set to true, the toolbar can automatically resize or hide its items when the browser window is resized.

<dx:ASPxGridView runat="server" ID="Grid" ...>
    <Toolbars>
        <dx:GridViewToolbar>
            <SettingsAdaptivity Enabled="true" EnableCollapseToSideMenu="true" .../>
            <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