Skip to main content

MVCxFileManagerFileListThumbnailsViewSettings Class

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

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public class MVCxFileManagerFileListThumbnailsViewSettings :
    FileManagerFileListThumbnailsViewSettings

The following members return MVCxFileManagerFileListThumbnailsViewSettings objects:

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

Implements

DevExpress.Web.Internal.IPropertiesDirtyTracker
See Also