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

Open new url

1 Answer 104 Views
This is a migrated thread and some comments may be shown as answers.
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 = ""

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

1 Answer, 1 is accepted

Sort by
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.
'Create a new window add it dynamically  
Dim newWindow As New Telerik.Web.UI.RadWindow()  
newWindow.ID = "RadWindow1" 
newWindow.NavigateUrl = "" 
newWindow.VisibleOnPageLoad = true  
'Add the newly created RadWindow to the RadWindowManager's collection  
'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  

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.
Asked by
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question