Skip to main content
Tab

FileManagerSettingsFileList.ShowFolders Property

Specifies whether folders are displayed in the file list.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Boolean false

true, if folders are visible in the file list, otherwise, false.

Property Paths

You can access this nested property as listed below:

Remarks

By default, the file list displays files only. Set the ShowFolders property to true to display folders in the file list.

ASPxFileManager - Items

Example

Web Forms (in markup):

<dx:ASPxFileManager ID="fileManager" runat="server" >
    <SettingsFileList ShowFolders="true" PageSize="300" />
    ...
</dx:ASPxFileManager>

Web Forms (in code):

ASPxFileManager fm = new ASPxFileManager();
...
fm.SettingsFileList.PageSize = 300;
fm.SettingsFileList.ShowFolders = true;

MVC:

@Html.DevExpress().FileManager( settings => {
    settings.Name = "fileManager";
    settings.SettingsFileList.PageSize = 300;
    settings.SettingsFileList.ShowFolders = true;
    ...
}).BindToFolder(Model).GetHtml()

Online Demo

See Also