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

Error: Unable to get value of the property 'GetWindowByName': object is null or undefined

1 Answer 167 Views
Window
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 09 Jun 2011, 11:11 AM
Hi All,

Here is the scenerio - I have a project in VS2010, on one of the pages I open the RAD Window using the following method (which works as expected):

Dim strScript As String = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(ShowWindow);</script>"
Page.ClientScript.RegisterStartupScript(Me.GetType, "ShowWindow", strScript)

<script type="text/javascript">
    function ShowWindow() {
        var manager = GetRadWindowManager();
        var window1 = manager.GetWindowByName("QuoteWindow");
        window1.show();
    
</script>


As mentioned the above code works perfect - the problem is I simply copied this code across to another project which is identical to the first one and everytime I hit the button to open the RAD Window I get this error:

'Error: Unable to get value of the property 'GetWindowByName': object is null or undefined'

I have searched and searched the forums to no avail - please provide any help asap if possible as this is pretty urgent.

Thanks in advance.


1 Answer, 1 is accepted

Sort by
0
Craig Mellon
Top achievements
Rank 1
answered on 09 Jun 2011, 03:03 PM
I was using telerik 3.5 dlls with .4 components.

Stupid mistake but all fixed now, thanks.
Tags
Window
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Craig Mellon
Top achievements
Rank 1
Share this question
or