Control as Container inside RadWindow

5 posts, 0 answers
  1. Bill
    Bill avatar
    7 posts
    Member since:
    Dec 2008

    Posted 25 May 2010 Link to this post

    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
  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 26 May 2010 Link to this post

    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.
  3. Bill
    Bill avatar
    7 posts
    Member since:
    Dec 2008

    Posted 26 May 2010 Link to this post

    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
  4. Bill
    Bill avatar
    7 posts
    Member since:
    Dec 2008

    Posted 26 May 2010 Link to this post

    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

  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 31 May 2010 Link to this post

    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.
Back to Top