This is a migrated thread and some comments may be shown as answers.

ModalView: Show remote Urls instead of HTML content

2 Answers 36 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
BigzampanoXXl
Top achievements
Rank 1
BigzampanoXXl asked on 28 Jan 2020, 12:22 PM

Hello,

 

is it possible to open a modal view and show a remote HTML page of PDF Document inside the modal view content?
I only see, that you can add own html in the "Content" Block.

 

If its not possible with the modal view, is there any control that allows me to do that. I would like to show HTML pages or PDFs in a "non fullscreen window", which should be on top of my main window. So modal window would be perfect ...

 

Greetings

2 Answers, 1 is accepted

Sort by
0
BigzampanoXXl
Top achievements
Rank 1
answered on 28 Jan 2020, 05:15 PM

I already have a working solution.

I just use the ModalView and put an iFrame Html Tag as the content. With adding a few css Styles I got it working.

0
Dimitar
Telerik team
answered on 30 Jan 2020, 08:09 AM

Hello,

I am glad to hear that you have managed to resolve the issue.In general, using iframe for loading external content in the popup is the recommended approach for achieving the desired result.

As alternative to the above, you could also utilize the Window widget that provides a built-in iframe option.

In case you have any additional questions, please let me know.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
ModalView
Asked by
BigzampanoXXl
Top achievements
Rank 1
Answers by
BigzampanoXXl
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or