Radwindow Does not open on button click from server side event

2 posts, 0 answers
  1. Bhavesh
    Bhavesh avatar
    9 posts
    Member since:
    Jun 2009

    Posted 20 Feb 2010 Link to this post

    Hello Friends,
                         I want to open radwindow on button click event from server side. I have write following code for open radwindow but it is not working. Please reply me what is wrong and how to overcome this solution.
    My aspx page look like,
     <asp:button  ................. onclick="Event_name"/>



    Coding have been written on button click event,
    protected void InsertButton_Click(object sender, ImageClickEventArgs e)
                   RadWindow newwindow = new RadWindow();
                    newwindow.ID = "SolutionRadWindow1";
                    newwindow.NavigateUrl = "Page.aspx";
                    newwindow.Width = Unit.Pixel(800);
                    newwindow.Height = Unit.Pixel(500);

    Bhavesh Rana
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Feb 2010 Link to this post


    Set the VisibleOnPageLoad property of new window to True. Also make sure that the RadWindowManager control is added on page.

            RadWindowManager Singleton = new RadWindowManager(); 
            RadWindow newwindow = new RadWindow(); 
            newwindow.ID = "SolutionRadWindow1"
            newwindow.NavigateUrl = "Page.aspx"
            newwindow.Width = Unit.Pixel(800); 
            newwindow.VisibleOnPageLoad = true
            newwindow.Height = Unit.Pixel(500); 

Back to Top