New to Telerik UI for ASP.NET Core? Download free 30-day trial

Image Preview

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
image_preview.cshtml
Image_PreviewController.cs
FileManagerDataController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The example demonstrates how you can use the Telerik UI for ASP.NET Core Window to display images listed in the FileManager.

To implement the functionality you need to:

  • Initialize a Telerik UI for ASP.NET Core Window component with an <img src="#" /> element as content.
  • Define an event handler function for the Open event of the FileManager.
  • In the event handler function, check if the opened file is indeed an image. If it is, set the src attribute of the <img /> element.
  • Open the Window.

Click on the View Source tab to review the details of the implementation.

Support & Learning Resources