aspnet-devexpress-dot-web-dot-gridtoolbarsettingsadaptivity-130952e1.md
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
[DefaultValue(575)]
public int CollapseRootItemsToIconsAtWindowInnerWidth { get; set; }
<DefaultValue(575)>
Public Property CollapseRootItemsToIconsAtWindowInnerWidth As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 575 |
The browser inner window width in pixels.
|
You can access this nested property as listed below:
| Object Type | Path to CollapseRootItemsToIconsAtWindowInnerWidth |
|---|---|
| GridToolbar |
.SettingsAdaptivity .CollapseRootItemsToIconsAtWindowInnerWidth
|
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.
<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>
See Also
GridToolbarSettingsAdaptivity Class