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

RadDock AJAX/ASP.NET assign ASP.NET page to Tool/Document Window?

4 Answers 32 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 14 Aug 2018, 06:43 PM

Hello,

I have ASP.NET web pages that I would like to encapsulate in RadDock Tool (or Document) windows... I already have the Dock Layout created and placed on an ASP.NET page... and at run-time of the page,  would like to have my  other (responsive) ASP.NET web page(s) dynamically displayed in a RadDock Tool (or Document) window(s).

Is there a way (some example code would be awesome) to simply assign a web page to the Tool (or Document) window in the code-behind of the RadDock page?

Since it's nice to know the "why" of things... this allows existing my existing (responsive) pages to be re-purposed (without redesign) and encapsulated in the RadDock window (the new UI) - realizing all the benefits of the Dock with existing formatted content.

Thanking you for all replies.

Chuck

 

 

 

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Aug 2018, 01:57 PM
Hello Chuck,

You can place an <iframe> inside each dock's <ContentTemplate> and this will let you load external pages in the docks.

Here is an example that also adds some styling to make it look better (removes margins and scrollbars from the dock container)

<style>
.rdContent,
.rdContent iframe {
    height: 100%;
    width: 100%;
    margin: 0 !important;
}
.rdContentWrapper,
.rdContent {
    overflow: hidden !important;
}
</style>
<telerik:RadDock runat="server" ID="RadDock1" Width="200" Height="200">
    <ContentTemplate>
        <iframe src="my-other-page.aspx"></iframe>
    </ContentTemplate>
</telerik:RadDock>


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Chuck
Top achievements
Rank 1
answered on 15 Aug 2018, 02:23 PM

Thank you Marin, this makes sense, TY.

I'm new to RadDock, so will have to familiarize myself with the tags associated with specific dock windows in the layout - as I need a dynamic assignment of the page to a specific window (even one created at run time).

Chuck

0
Marin Bratanov
Telerik team
answered on 15 Aug 2018, 03:06 PM
Hello Chuck,

If you do not have a layout done already, perhaps it will be easier for you to open RadWindow instances. They have direct API to take a URL and you can create them on the fly in the browser: https://docs.telerik.com/devtools/aspnet-ajax/controls/window/getting-started/opening-windows.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Chuck
Top achievements
Rank 1
answered on 15 Aug 2018, 05:11 PM

Thank you Marin, I'll review.

Chuck

Tags
Dock
Asked by
Chuck
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Chuck
Top achievements
Rank 1
Share this question
or