Skip to main content
Tab

FileManagerSettingsAdaptivity.Enabled Property

Specifies whether an adaptive behavior is enabled for the File Manager.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool Enabled { get; set; }

Property Value

Type Default Description
Boolean false

true, to enable the adaptive behavior; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

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