Tab

FileManagerFileListDetailsViewSettings.SettingsAdaptivity Property

Provides access to the adaptivity settings of the File Manager's File List when it is in the Details view mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public FileManagerFileListDetailsViewAdaptivitySettings SettingsAdaptivity { get; }
Public ReadOnly Property SettingsAdaptivity As FileManagerFileListDetailsViewAdaptivitySettings

Property Value

Type Description
FileManagerFileListDetailsViewAdaptivitySettings

A FileManagerFileListDetailsViewAdaptivitySettings object that contains adaptivity settings.

Available values:

Name Description
AllowHideDataCellsByColumnMinWidth

Specifies whether the grid should hide a column if its width is less than the GridViewColumn.MinWidth property value.

Mode

Gets or sets a value specifying whether the file manager hides columns once the cell text becomes truncated when the browser changes its width.

Assign(PropertiesBase)

Copies the settings from the specified object to the current one.

FileManagerFileListDetailsViewAdaptivitySettings(IPropertiesOwner)

Initializes a new instance of the FileManagerFileListDetailsViewAdaptivitySettings class.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to SettingsAdaptivity
ASP.NET Controls and MVC Extensions HtmlEditorDocumentSelectorFileListSettings
.DetailsViewSettings.SettingsAdaptivity
HtmlEditorFileManagerFileListSettings
.DetailsViewSettings.SettingsAdaptivity
FileManagerSettingsFileList
.DetailsViewSettings.SettingsAdaptivity
ASP.NET MVC Extensions MVCxFileManagerSettingsFileList
.DetailsViewSettings.SettingsAdaptivity
MVCxFileManagerSettingsFileList
.DetailsViewSettings.SettingsAdaptivity

Remarks

Refer to the Adaptivity topic to learn more about adaptivity mode in the file manager.

Example

Web Forms (declaratively):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsFileList View="Details">
        <DetailsViewSettings AllowColumnDragDrop="true">
            <SettingsAdaptivity Mode="HideDataCells" AllowHideDataCellsByColumnMinWidth="true" />
            <SettingsCommandColumn AllowDragDrop="True" />
        </DetailsViewSettings>
    </SettingsFileList>
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsFileList.View = FileListView.Details;
fm.SettingsFileList.DetailsViewSettings.AllowColumnDragDrop = true;
fm.SettingsFileList.DetailsViewSettings.SettingsAdaptivity.Mode = FileManagerDetailsViewAdaptivityMode.HideDataCells;
fm.SettingsFileList.DetailsViewSettings.SettingsCommandColumn.AllowDragDrop = true;

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsFileList.View = FileListView.Details;
    settings.SettingsFileList.DetailsViewSettings.AllowColumnDragDrop = true;
    settings.SettingsFileList.DetailsViewSettings.SettingsAdaptivity.Mode = FileManagerDetailsViewAdaptivityMode.HideDataCells;
    settings.SettingsFileList.DetailsViewSettings.SettingsCommandColumn.AllowDragDrop = true;
    ...
}).BindToFolder(Model).GetHtml()
See Also