Back to Devexpress

GridToolbarSettingsAdaptivity.CollapseRootItemsToIconsAtWindowInnerWidth Property

aspnet-devexpress-dot-web-dot-gridtoolbarsettingsadaptivity-130952e1.md

latest2.9 KB
Original Source

GridToolbarSettingsAdaptivity.CollapseRootItemsToIconsAtWindowInnerWidth Property

Gets or sets a value that defines the maximum browser window inner width when the toolbar hides an items’ text and displays only icons.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(575)]
public int CollapseRootItemsToIconsAtWindowInnerWidth { get; set; }
vb
<DefaultValue(575)>
Public Property CollapseRootItemsToIconsAtWindowInnerWidth 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 CollapseRootItemsToIconsAtWindowInnerWidth
GridToolbar

.SettingsAdaptivity .CollapseRootItemsToIconsAtWindowInnerWidth

|

Remarks

The toolbar hides the text of its items and displays only icons when the browser window’s width is less than the value defined by the CollapseRootItemsToIconsAtWindowInnerWidth property.

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

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