Embedding a webpage into radpage

1 Answer 89 Views
Window
cest
Top achievements
Rank 1
Iron
cest asked on 22 Jul 2024, 07:53 PM
I was curious if anyone could point me in the right direction on how to show a webpage within telerik controls. I am not sure where to start on this and cant seem to find any relevant information.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Jul 2024, 10:54 PM

Hi,

To show a webpage within Telerik controls, you can use the RadWindow control to create a modal popup that embeds a webpage. Here’s a basic example of how you can achieve this:

  1. Place the RadWindowManager and RadWindow on your ASP.NET page:

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="WebPageWindow" NavigateUrl="http://www.example.com" 
                               runat="server" Modal="true" Width="800px" Height="600px">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
  2. Open the RadWindow from a client-side event or server-side code:

    • Client-side:
      function openWindow() {
          var window = $find("<%= WebPageWindow.ClientID %>");
          window.show();
      }
      
    • Server-side:
      WebPageWindow.NavigateUrl = "http://www.example.com";
      WebPageWindow.VisibleOnPageLoad = true; // This will open the window when the page loads
      

This setup uses the RadWindow control to embed an external webpage. Adjust the NavigateUrl to point to the webpage you want to display.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
Window
Asked by
cest
Top achievements
Rank 1
Iron
Answers by
Rumen
Telerik team
Share this question
or