Cannot read property 'firstChild' of null

3 posts, 0 answers
  1. Solgenia
    Solgenia avatar
    11 posts
    Member since:
    Sep 2009

    Posted 27 Nov 2013 Link to this post

    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, "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?

  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 29 Nov 2013 Link to this post


    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: The alternative is to make sure the RadWindowManager is not disposed with the postback.

    Marin Bratanov
    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.
  3. Solgenia
    Solgenia avatar
    11 posts
    Member since:
    Sep 2009

    Posted 03 Dec 2013 Link to this post

    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.
Back to Top