The requested page is not available for the requested platform. You are viewing the content for Default platform.

MVCxFileManagerFileListThumbnailsViewSettings Class

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

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public class MVCxFileManagerFileListThumbnailsViewSettings :
    FileManagerFileListThumbnailsViewSettings
Public Class MVCxFileManagerFileListThumbnailsViewSettings
    Inherits FileManagerFileListThumbnailsViewSettings

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

Inheritance

See Also