Skip to main content

FileManagerSettingsAdaptivity.CollapseFolderContainerAtWindowInnerWidth Property

Gets or sets a value that defines the maximum browser window inner width when the folder container collapses its content when rendered.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public virtual int CollapseFolderContainerAtWindowInnerWidth { get; set; }

Property Value

Type Default Description
Int32 600

The browser inner window width in pixels.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to CollapseFolderContainerAtWindowInnerWidth
ASP.NET Web Forms Controls ASPxFileManager
.SettingsAdaptivity .CollapseFolderContainerAtWindowInnerWidth
ASP.NET MVC Extensions FileManagerSettings
.SettingsAdaptivity .CollapseFolderContainerAtWindowInnerWidth


The folder container collapses its content when the browser window inner width is less than or equal to the value defined by the CollapseFolderContainerAtWindowInnerWidth property.

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

When the CollapseFolderContainerAtWindowInnerWidth property value is set to 0, the panel does not automatically collapse its content when the browser inner window width is changed.



Web Forms (in markup):

<dx:ASPxFileManager ID="FileManager" runat="server" >
    <SettingsAdaptivity Enabled="true" EnableCollapseFolderContainer="true" 
    CollapseFolderContainerAtWindowInnerWidth="300" />

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
FileManager.SettingsAdaptivity.Enabled = true;
FileManager.SettingsAdaptivity.EnableCollapseFolderContainer = true;
FileManager.SettingsAdaptivity.CollapseFolderContainerAtWindowInnerWidth = Unit.Pixel(300);


@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";

    settings.SettingsAdaptivity.Enabled = true;
    settings.SettingsAdaptivity.EnableCollapseFolderContainer = true;
    settings.SettingsAdaptivity.CollapseFolderContainerAtWindowInnerWidth = Unit.Pixel(300);

Online Demo

See Also