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

Cannot read property 'firstChild' of null

2 Answers 136 Views
Window
This is a migrated thread and some comments may be shown as answers.
Solgenia
Top achievements
Rank 1
Solgenia asked on 27 Nov 2013, 01:16 PM
Hi, I am getting this error in Chrome (it's "unable to get property 'firstchild' of undefined or null reference" in IE) when trying to open a RadWindow as a result of a callback.
Subsequent calls of the same callback throw "Cannot read property 'style' of null".
In the callback there's a RadWindowManager.open(url, "popupwnd") that calls some JQuery which in turn definitely throws this error.

I tried every version from 2013.2.717 to the latest nightly build. It still works fine in version 2013.1.417, but I need to support IE11.

Any idea on how to fix or debug it?

Thanks

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 29 Nov 2013, 09:07 AM
Hi,

Could you share the code you are using so we can examine the case? This is not a known problem, so at this point I could only be guessing what the setup could be. Could you also explain what you mean with callback - a client callback or a partial postback?

In case you are using postbacks it is possible that the Sys.Application.Load event needs to be used, as shown here: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx. The alternative is to make sure the RadWindowManager is not disposed with the postback.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Solgenia
Top achievements
Rank 1
answered on 03 Dec 2013, 10:08 AM
Hi Marin,
thanks for your answer.
I was assembling a test project, when I discovered the problem: an old Telerik script we changed to have IE10 compatibility before the official support.
Regards
Tags
Window
Asked by
Solgenia
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Solgenia
Top achievements
Rank 1
Share this question
or