Open User Control in RAD Window?

4 posts, 0 answers
  1. AlphaVegas
    AlphaVegas avatar
    4 posts
    Member since:
    Aug 2005

    Posted 25 Feb 2008 Link to this post

    Are there still plans to allow opening a User Control inside a RAD Window?

    This thread from Feb. 2007 states that it is in the plans;
    http://www.telerik.com/community/forums/thread/b311D-gmddt.aspx

    However, I still receive the 'This type of page is not served.' exception.

    Thanks,
    A.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 26 Feb 2008 Link to this post

    Hi Alistair,

    We considered that idea in our internal meetings, however we decided not to implement such feature because it is out of the scope of the control. The idea behind the RadWindow control is to replace the standard browser's window and to basically be a container which displays a content page different from the parent one.

    The functionality that you need - to show a user control in a container can be achieved by either using RadDock or RadToolTip - we invite you to check them and choose the one that best suits your requirements.

    If these two controls don't meet your requirements, can you please provide additional information on your exact scenario? It will help us provide you with the most appropriate solution.



    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. neb
    neb avatar
    3 posts
    Member since:
    Jul 2011

    Posted 11 Jun 2014 Link to this post

    is there a way to open a radwindow from inside a user control?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Jun 2014 in reply to neb Link to this post

    Hi neb,

    Please have a look into the sample code snippet to open a RadWindow inside the UserControl from the parent page.

    ASCX:
    <telerik:RadWindow ID="RadWindow1" runat="server">
        <ContentTemplate>
            RadWindow inside UserControl Page
        </ContentTemplate>
    </telerik:RadWindow>

    ASPX:
    <uc1:RadWindow ID="UserControl1" runat="server" />
    <telerik:RadButton ID="radbtnOpenWin" runat="server" Text="Open Window" OnClick="radbtnOpenWin_Click">
    </telerik:RadButton>

    C#:
    protected void radbtnOpenWin_Click(object sender, EventArgs e)
    {
        UserControl control = UserControl1 as UserControl;
        RadWindow window = control.FindControl("RadWindow1") as RadWindow;
        window.VisibleOnPageLoad = true;
    }

    Please elaborate your requirement if it doesn't help.
    Thanks,
    Shinu.
Back to Top