Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Collapse]File Management
   [Collapse]File Manager
     Overview - FileManager
    [Collapse]Concepts
      Thumbnails
      View Modes
      Uploading Files
      File Download
      Access Control
     [Expand]Binding to Data
    [Expand]Visual Elements
   [Expand]File Upload
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Thumbnails

Expanded Image Thumbnails

FileManager automatically creates thumbnails for image files with the following file extensions:

  • bmp
  • gif
  • ico
  • jpg
  • jpeg
  • png

For better performance, these content-based thumbnails are stored in the location specified via the FileManagerSettings.ThumbnailFolder (via the FileManagerSettings.Settings.ThumbnailFolder) property.

Note

The folder that contains thumbnails must be placed physically inside the application folder.

Expanded Default Thumbnails

FileManager provides the default thumbnails for some file types listed below.

File Extension Default Thumbnail
txt
rtf
doc
docx
odt
xls
xlsx
ods
ppt
pptx
odp
pdf
other extensions, where thumbnails are not defined

You can change the last thumbnail via the FileManagerImages.File (via the FileManagerSettings.Images.File) property.

Expanded Custom Thumbnails

In addition to an automatically created and default thumbnails, FileManager allows you to provide custom thumbnails by handling the server-side FileManagerSettings.CustomThumbnail event. This event allows you to define a custom manner in which all or certain files should be visually represented in folders. To access and identify a file being processed, use the FileManagerThumbnailCreateEventArgs.File property. To define a custom thumbnail for the file use the FileManagerThumbnailCreateEventArgs.ThumbnailImage property.

In the example below, the CustomThumbnail event is handled to analyze file extensions and represent each file type using the corresponding custom thumbnail image.

View code:

How would you rate this topic?​​​​​​​