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

Control as Container inside RadWindow

4 Answers 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 25 May 2010, 07:14 PM
Hi, I'm trying to implement a radWindow control's container inside an actual radwindow. I couldn't find any example which implemented the controls container inside a radwindow and I'm questioning whether this functionality is available out of the box. On a normal page if I set up a basic example using radwindow as a controls container, then it would work as expected. The same example inside a radwindow cannot work.

Basically, I need to implement an overlay, modal popup inside a Radwindow. I know that a regular RadWindow would work as I've done this before, but I don't want to create a separate page for this small functionality as this would be considered overkill, which is why we are looking to use RadWindow as a controls container. How can this be done?

Thanks,
Bill

4 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 26 May 2010, 02:56 PM
Hello Bill,

Please, take a look at the following online example which illustrates how to use RadWindow's ContentContainer functionality:
http://demos.telerik.com/aspnet-ajax/window/examples/internalcontent/defaultcs.aspx
Let us know if you have any other questions.

Best wishes,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Bill
Top achievements
Rank 1
answered on 26 May 2010, 03:32 PM
Yes, I've already looked at the demo but I have a few additional questions.

1. How do u show the radwindows control's container on a button click event.
2. How can u show the radwindows control's container within an actual radwindow (a regular rad window - not as controls container)

Thanks,
Bill
0
Bill
Top achievements
Rank 1
answered on 26 May 2010, 04:09 PM
ok, i figured out 1.

<script language="javascript">
       function showRadWindow() {
            var oWnd = $find('<%=RadWindow1.ClientID %>');
            oWnd.show();
        }
</script>

but still need help with number 2, which is showing a RadWindow as a controls container inside an actual RadWindow with an url.

Thanks

0
Svetlina Anati
Telerik team
answered on 31 May 2010, 01:53 PM
Hi Bill,

As you have correctly noted, a RadWindow can be shown by calling its method show() no matter it is used with a navigate url or as a controls container. When the RadWindow is used with a navigate url as the first RadWindow in the case you describe, it creates an IFRAME element and you can reference it by using the get_contentFrame() method and after that you can use the contentWindow object exactly as the window object and reference and show the second RadWindow.

Greetings,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Bill
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Bill
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or