New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC FileManager Image Preview
Loading Demo...
-
EXAMPLEVIEW SOURCE
-
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The example demonstrates how you can use the Telerik UI for ASP.NET MVC Window to display images listed in the FileManager.
Double-click an image in the FileManager to open the Window and display the image preview.
To implement the functionality you need to:
- Initialize a Telerik UI for ASP.NET MVC 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 and if so, set the src attribute ot the <img /> element.
- Open the Window.
Click on the View Source tab to review the details of the implementation.
Additional Apps
This FileManager example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in the ThemeBuilder.