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 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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 29 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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.
    Regards
Back to Top