New to Telerik UI for ASP.NET MVC? Download free 30-day trial
Image Preview
Loading Demo...
- EXAMPLE
- VIEW SOURCE
- Edit in Theme Builder
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
image_preview.cshtml
Image_PreviewController.cs
FileManagerDataController.cs
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.
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.