Skip to main content
Tab

FileManagerSettingsAdaptivity.EnableCollapseFolderContainer Property

Gets or sets a value specifying whether the file manager’s folder container is collapsed when the browser window width is changed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool EnableCollapseFolderContainer { get; set; }

Property Value

Type Default Description
Boolean true

true, to enable folder container collapsing; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

Remarks

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