Tab
A newer version of this page is available. Switch to the current version.

FileManagerSettingsAdaptivity Class

Contains settings that relate to the file manager's adaptivity.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class FileManagerSettingsAdaptivity :
    FileManagerSettingsBase
Public Class FileManagerSettingsAdaptivity
    Inherits FileManagerSettingsBase

Related API Members

The following members accept/return FileManagerSettingsAdaptivity objects:

Remarks

Use the ASPxFileManager.SettingsAdaptivity property to access a FileManagerSettingsAdaptivity object.

Concept

Example

WebForms (declaratively):

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

WebForms (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