MVCxFileManagerFileListThumbnailsViewSettings Class

Contains settings that relate to the file list's thumbnails view functionality.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.1.dll

Declaration

public class MVCxFileManagerFileListThumbnailsViewSettings :
    FileManagerFileListThumbnailsViewSettings
Public Class MVCxFileManagerFileListThumbnailsViewSettings
    Inherits FileManagerFileListThumbnailsViewSettings

Returned By

The MVCxFileManagerSettingsFileList.ThumbnailsViewSettings property returns an instance of MVCxFileManagerFileListThumbnailsViewSettings.

Remarks

An object of the MVCxFileManagerFileListThumbnailsViewSettings type can be accessed via the MVCxFileManagerSettingsFileList.ThumbnailsViewSettings property.

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