Open User Control in RAD Window?

6 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;

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

  2. Georgi Tunev
    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. 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?
  4. 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.

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

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

    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.
  5. Phil
    Phil avatar
    6 posts
    Member since:
    Jun 2016

    Posted 17 May 2019 in reply to Shinu Link to this post

    Shinu, this is brilliant!  Thanks!
  6. Vessy
    Vessy avatar
    2098 posts

    Posted 20 May 2019 Link to this post

    Hi guys,

    I will also advise that you take a look at the approach described in the following article demonstrating how to open a RadWindow from the server-side by registering a startup script to the ScriptManager (so the window will be shown only once):

    protected void Button1_Click(object sender, EventArgs e)
        //business logic goes here
        string script = "function f(){$find(\"" + RadWindow1.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);

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