Back to Devexpress

GridToolbarSettingsAdaptivity.CollapseToSideMenuAtWindowInnerWidth Property

aspnet-devexpress-dot-web-dot-gridtoolbarsettingsadaptivity-306a00bb.md

latest2.8 KB
Original Source

GridToolbarSettingsAdaptivity.CollapseToSideMenuAtWindowInnerWidth Property

Gets or sets a value that defines the maximum browser window inner width when the toolbar collapses its items to the side menu.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(575)]
public int CollapseToSideMenuAtWindowInnerWidth { get; set; }
vb
<DefaultValue(575)>
Public Property CollapseToSideMenuAtWindowInnerWidth As Integer

Property Value

TypeDefaultDescription
Int32575

The browser inner window width in pixels.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CollapseToSideMenuAtWindowInnerWidth
GridToolbar

.SettingsAdaptivity .CollapseToSideMenuAtWindowInnerWidth

|

Remarks

The toolbar collapses its items to the side menu when the browser inner width is less than the value defined by the CollapseToSideMenuAtWindowInnerWidth property.

The CollapseToSideMenuAtWindowInnerWidth property is in effect only when the Enabled and the EnableCollapseToSideMenu properties are set to true.

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