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

RadWindow

1 Answer 50 Views
Window
This is a migrated thread and some comments may be shown as answers.
Claudinei
Top achievements
Rank 1
Claudinei asked on 21 Jul 2008, 02:36 AM
Ola,

estou testando o ASP.NET AJAX 2008 Q1 no VB 2008, queria um exemplo para exibir o RADWindow.

Queria colocar o codigo diretamente no evento click do botão.


Att

Claudinei.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 21 Jul 2008, 11:19 AM
Hello Claudinei,

To open a RadWindow from the codebehind you need to:
  1. Create it on the server (if it doesn't already exist)
  2. Set the needed properties (ID, NavigateUrl, etc.)
  3. Set its VisibleOnPageLoad property to true
  4. add it to the RadWindowManager's Windows collection or directly in the form, depending on whether you use the manager or not
e.g.
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) 


Greetings,
Georgi Tunev
the Telerik team

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