Skip to main content
Tab

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

Declaration

[DefaultValue(600)]
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

Remarks

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.

Concept

Example

Web Forms (in markup):

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

Web Forms (in code):

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

MVC:

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

    settings.SettingsAdaptivity.Enabled = true;
    settings.SettingsAdaptivity.EnableCollapseFolderContainer = true;
    settings.SettingsAdaptivity.CollapseFolderContainerAtWindowInnerWidth = Unit.Pixel(300);
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also