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

GetWindowManager returns null

3 Answers 367 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jacques Woolston
Top achievements
Rank 1
Jacques Woolston asked on 22 Nov 2007, 08:09 PM
Hi,

I'm getting an error when trying to open a radwindow as follows:

window.radopen(url,windowname)

The actual script error I get is "_1c has no properties". After a bit of debugging this I found that the GetRadWindowManager() from the function beolw is not returning anything.

window.radopen=function(url,_1b){
var _1c=GetRadWindowManager();
return _1c.open(url,_1b);
};


I am adding the RadWindow Manager Dynamically at the page pre_init stage as such:

Dim RadWinM As New Telerik.Web.UI.RadWindowManager
                RadWinM.ID = "RadWinManager"
                Dim RadWin As New Telerik.Web.UI.RadWindow
                RadWin.ID = "ControlEditWin"
                RadWin.Modal = True
                RadWin.Height = "450"
                RadWin.Width = "750"
                RadWinM.Windows.Add(RadWin)
                Me.Controls.Add(RadWinM)

Can anyone help with my problem?

Thanks

3 Answers, 1 is accepted

Sort by
0
Jacques Woolston
Top achievements
Rank 1
answered on 23 Nov 2007, 12:19 PM
I have now replaced this with the non prometheus verions and it works fine.
0
Georgi Tunev
Telerik team
answered on 23 Nov 2007, 12:41 PM
Hello Jacques,

If you add the RadWindowManager like this:

Me.Controls.Add(RadWinM)

it will insert the RadWindowManager outside the <html></html> tags which is not a valid Html and will result in a problem like the one that you experience. You can check this for yourself by examining the Html dump on the created page.
What I suggest is to add the control in the page's form:

Me.form1.Controls.Add(RadWinM)




All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jacques Woolston
Top achievements
Rank 1
answered on 30 Nov 2007, 02:47 PM
Thanks!
Tags
Window
Asked by
Jacques Woolston
Top achievements
Rank 1
Answers by
Jacques Woolston
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or