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]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Charting
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Collapse]File Management
   [Collapse]File Manager
     Overview - FileManager
    [Collapse]Concepts
      Thumbnails
      View Modes
      Uploading Files
      File Download
     [Expand]Access Control Overview
     [Expand]Binding to Data
    [Expand]Visual Elements
   [Expand]File Upload
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]SpellChecker
  [Expand]Query Builder
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [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]Office File API
[Expand]Reporting
[Expand]Report and Dashboard 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. Within the event's handler, a currently processed item can be accessed and identified by using the FileManagerThumbnailCreateEventArgs.Item property, and a custom thumbnail can be defined for the file via 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:

Is this topic helpful?​​​​​​​