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

[Solved] Open a radwindow from server side script

1 Answer 277 Views
Window
This is a migrated thread and some comments may be shown as answers.
FQ
Top achievements
Rank 1
FQ asked on 24 Jun 2008, 07:15 PM
How can I open a radwindow from server side script?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jun 2008, 10:28 AM
Hello DT,

Here is what you need to do - the code is taken from this help article:

//Create a new window add it dynamically  
Telerik.Web.UI.RadWindow newWindow = new Telerik.Web.UI.RadWindow();  
//set its ID so you can use it after that if needed  
newWindow.ID = "RadWindow1" 
//set the Url which you want to display in the window:  
newWindow.NavigateUrl = "http://mysite/mypage.aspx" 
//set its VisibleOnPageLoad so it is shown after the page is reloaded:  
newWindow.VisibleOnPageLoad = true;  
//Depending on your setup:  
//OPTION 1  
//Add the newly created RadWindow to the RadWindowManager's collection  
//WindowManager.Windows.Add(newWindow);  
//OPTION 2  
//since in the for ASP.NET AJAX version you can have a RadWindow outside of a RadWindowManager  
//as a separate control, you can add the newly created RadWindow directly to the form's Controls collection  
form1.Controls.Add(newWindow); 

I hope this helps.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
FQ
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or