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

Open new url

1 Answer 62 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 08 Oct 2008, 08:09 PM
Hi i try to open a new url in my control windows but i can, I use the next code:
 Me.RadWindow1.NavigateUrl = "http://www.hotmail.com"

I dont know what is wrong maybe I need another line of code.




1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Oct 2008, 12:49 PM
Hello Jorge,

To create and open a RadWindow from the server you need to:
  1. Create the window
  2. Set its needed properties - ID, NavigateUrl, etc.
  3. Set its VisibleOnPageLoad property to true. 
  4. Add the window to a RadWindowManager or directly in the form.
e.g.:
'Create a new window add it dynamically  
Dim newWindow As New Telerik.Web.UI.RadWindow()  
newWindow.ID = "RadWindow1" 
newWindow.NavigateUrl = "http://www.sitefinity.com" 
newWindow.VisibleOnPageLoad = true  
'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) 


If you have already declared a RadWindow in your aspx and want to use it, you only need p.3 - e.g. set its VisibleOnPageLoad and NavigateUrl properties to true. More information on the subject is available in the documentation, section Controls / RadWindow / Programming > Setting Server-Side Properties



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Jorge
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or