Back to Devexpress

PanelAdaptivitySettings.CollapseAtWindowInnerWidth Property

aspnet-devexpress-dot-web-dot-paneladaptivitysettings-967f1a6b.md

latest4.6 KB
Original Source

PanelAdaptivitySettings.CollapseAtWindowInnerWidth Property

Specifies a the maximum browser window’s inner width when the panel collapses its content.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Int320

The browser inner window width in pixels.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to CollapseAtWindowInnerWidth
ASP.NET MVC ExtensionsCollapsiblePanelSettings

.SettingsAdaptivity .CollapseAtWindowInnerWidth

| | ASP.NET Web Forms Controls | ASPxCollapsiblePanel |

.SettingsAdaptivity .CollapseAtWindowInnerWidth

|

Remarks

The panel collapses its content when any of the browser window dimensions are less than the values defined by the CollapseAtWindowInnerWidth and PanelAdaptivitySettings.CollapseAtWindowInnerHeight properties.

The CollapseAtWindowInnerWidth property is in effect only when the ASPxCollapsiblePanel.Collapsible property value is set to true.

When the CollapseAtWindowInnerWidth property value is set to 0 , the panel does not automatically collapse its content when the browser inner window width is changed. When both the CollapseAtWindowInnerWidth and the PanelAdaptivitySettings.CollapseAtWindowInnerHeight properties are set to 0 , the panel’s initial state depends on the PanelCollapsingSettings.ExpandOnPageLoad property value.

Note

The ASPxClientPanel.Collapse and ASPxClientPanel.Expand methods cannot be used when the CollapseAtWindowInnerWidth property is defined.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CollapseAtWindowInnerWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-implement-sidebar-navigation/CS/AdaptiveSlideNavigation/Default.aspx.cs#L7

csharp
int collapseAtWindowInnerWidth = 1200;
NavigationPanel.SettingsAdaptivity.CollapseAtWindowInnerWidth = collapseAtWindowInnerWidth;
NavigationPanel.JSProperties["cpCollapseAtWindowInnerWidth"] = collapseAtWindowInnerWidth;

asp-net-web-forms-implement-sidebar-navigation/VB/AdaptiveSlideNavigation/Default.aspx.vb#L9

vb
Dim collapseAtWindowInnerWidth As Integer = 1200
NavigationPanel.SettingsAdaptivity.CollapseAtWindowInnerWidth = collapseAtWindowInnerWidth
NavigationPanel.JSProperties("cpCollapseAtWindowInnerWidth") = collapseAtWindowInnerWidth

See Also

PanelAdaptivitySettings Class

PanelAdaptivitySettings Members

DevExpress.Web Namespace