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

window from code

1 Answer 144 Views
Window
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 25 Sep 2009, 02:58 AM
hi,
I cant open window from code. I added radwindow on page which is dynamically created. I cant find sow metod to dsplay window. any help appreciated.


1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Sep 2009, 04:45 AM
Hi Benjamin,

Here is the code that I used for opening RadWindow from code behind.

C#:
 
protected void Button1_Click(object sender, EventArgs e)  
{  
    RadWindow window1 = new RadWindow();  
    window1.NavigateUrl = "http://www.google.com";  
    window1.VisibleOnPageLoad = true;  
    window1.Width = 500;  
    window1.Height = 300;  
    this.form1.Controls.Add(window1);  
}  
Note: Make sure that you set the VisibleOnPageLoad property to True.
Also checkout the documentation for more information on Setting Server-Side Properties

Feel free to share the comments,
Shinu.
Tags
Window
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or