Skip to main content
Tab

FileManagerSettingsFileList.ThumbnailsViewSettings Property

Gets the settings of the file list thumbnails view.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

public FileManagerFileListThumbnailsViewSettings ThumbnailsViewSettings { get; }

Property Value

Type Description
FileManagerFileListThumbnailsViewSettings

A FileManagerFileListThumbnailsViewSettings object that contains settings.

Property Paths

You can access this nested property as listed below:

Show 21 property paths
Library Object Type Path to ThumbnailsViewSettings
ASP.NET Bootstrap Controls BootstrapFileManager
.SettingsFileList.ThumbnailsViewSettings
ASP.NET Web Forms Controls ASPxFileManager
.SettingsFileList.ThumbnailsViewSettings
HtmlEditorAudioSelectorSettings
.FileListSettings.ThumbnailsViewSettings
HtmlEditorDocumentSelectorSettings
.FileListSettings.ThumbnailsViewSettings
HtmlEditorFileManager
.SettingsFileList.ThumbnailsViewSettings
HtmlEditorFileManagerSettingsBase
.FileListSettings.ThumbnailsViewSettings
HtmlEditorFlashSelectorSettings
.FileListSettings.ThumbnailsViewSettings
HtmlEditorImageSelectorSettings
.FileListSettings.ThumbnailsViewSettings
HtmlEditorSelectorSettings
.FileListSettings.ThumbnailsViewSettings
HtmlEditorVideoSelectorSettings
.FileListSettings.ThumbnailsViewSettings
RichEditDocumentSelectorSettings
.FileListSettings.ThumbnailsViewSettings
RichEditFileManager
.SettingsFileList.ThumbnailsViewSettings
RichEditFolderManager
.SettingsFileList.ThumbnailsViewSettings
SpreadsheetDocumentSelectorSettings
.FileListSettings.ThumbnailsViewSettings
ASP.NET MVC Extensions FileManagerSettings
.SettingsFileList.ThumbnailsViewSettings
MVCxFileManager
.SettingsFileList.ThumbnailsViewSettings
MVCxHtmlEditorAudioSelectorSettings
.FileListSettings.ThumbnailsViewSettings
MVCxHtmlEditorDocumentSelectorSettings
.FileListSettings.ThumbnailsViewSettings
MVCxHtmlEditorFlashSelectorSettings
.FileListSettings.ThumbnailsViewSettings
MVCxHtmlEditorImageSelectorSettings
.FileListSettings.ThumbnailsViewSettings
MVCxHtmlEditorVideoSelectorSettings
.FileListSettings.ThumbnailsViewSettings

Remarks

Web Forms:

<dx:ASPxFileManager ID="fileManager" runat="server">
    <SettingsFileList>
        <ThumbnailsViewSettings ThumbnailHeight="50" ThumbnailWidth="50">
            <ItemTemplate>
                <img class="tmplThumb" src='<%# Eval("ThumbnailUrl") %>' alt='<%# Eval("Name") %>' />
                <div class="tmplTextContainer">
                    <dx:ASPxLabel CssClass="mainInfo" runat="server" Text='<%# Eval("Name") %>' />
                    <br />
                    <dx:ASPxLabel CssClass="additionalInfo" runat="server" Text='<%# GetFileType(Container.DataItem as FileManagerFile) %>' />
                    <br />
                    <dx:ASPxLabel CssClass="additionalInfo" runat="server" Text='<%# GetSize(Container.DataItem as FileManagerFile) %>' />
                </div>
            </ItemTemplate>
        </ThumbnailsViewSettings>
    </SettingsFileList>
    ...
</dx:ASPxFileManager>

MVC:

settings.SettingsFileList.ThumbnailsViewSettings.ThumbnailHeight = Unit.Pixel(50);
settings.SettingsFileList.ThumbnailsViewSettings.ThumbnailWidth = Unit.Pixel(50);
settings.SettingsFileList.ThumbnailsViewSettings.SetThumbnailViewItemTemplateContent(c => {
    ViewContext.Writer.Write(
        "<img class=\"tmplThumb\" src=\"" + c.Item.ThumbnailUrl + "\" alt='<%# Eval(\"Name\") %>' />" +
        "<div class=\"tmplTextContainer\">" +
            "<span>" + DataBinder.Eval(c.DataItem, "Name") + "</span>" +
            "<br />" +
            "<span class=\"additionalInfo\">" + FileManagerItemInfo.Create("", c.Item.FullName).Type + "</span>" +
            "<br />" +
            "<span class=\"additionalInfo\">" + c.Item.Length / 1024 + "Kb </span>" +
        "</div>"
    );
});

Online Demo

See Also