Error after upgrade

2 posts, 0 answers
  1. Iain
    Iain avatar
    1 posts
    Member since:
    May 2014

    Posted 16 May 2014 Link to this post

    Hi,

    I have recently upgraded to .net 4.5.1 and Telerik 2014.1.403.45 and am getting an error in one of my pages. It is a pretty complex page and has grids, radpanes, menu, tabstrip, splitter, toolbar, tooltipmanager and other telerik controls.

    The error happens when a user clicks a button that opens a radwindow. The radwindow has a content template and before opening the window we post back to update the content template.

    The error is "Uncaught TypeError: Cannot read property 'id' of null"

    The line that errors is "if(e[c].id==this._getUpdatePanelID()". e[c] is null. e is an array of 30 DIVs and item 26 is null (all the others are non-null)

    The page is pretty complex so it's not easy to give you a test page to show you the error. I could probably put the app on an external web server although I would have to give you a username and password to use on a confidential basis.

    Cheers,
    Iain

    The error call stack is:

    (anonymous function)   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:25118
    f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    f.getHandler   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    f.raiseEvent   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    n._pageLoaded   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._scriptsLoadComplete   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    f.createCallback   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._nextSession   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._loadScriptsInternal   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._nextSession   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n.loadScripts   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    n._onFormSubmitCompleted   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:9
    f.createDelegate   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    f.getHandler   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    i   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    f.completed   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_scriptManager_TSM&compress=1&_TSM_CombinedSc…:3
    t.Net.XMLHttpExecutor._onReadyStateChange

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 20 May 2014 Link to this post

    Hi Iain,

    Most likely, you get nested update panels - one around the RadWindow and one inside the ContentTemplate. Thus, when the browser starts evaluating the HTML for the inner one it turns out that the inner one was already disposed by the outer one.

    By update panel I mean an asp:UpdatePanel or a RadAjaxPanel or an AJAX setting from a RadAjaxManager/RadAjaxManagerProxy that encompasses the RadWindow declaration.

    Thus, I would advise the following:

    1. examine this sticky thread to open the RadWindow via registering a script from the server: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx. This will let you remove the update panel around the RadWindow.
    2. examine this thread on using AJAX in this case: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html. Once again, only an updatePanel in the ContentTemplate should be needed.
    3. Look for other nested AJAX settings/update panels and remove this nesting because it can cause other issues too. This article can help you get started - http://www.telerik.com/help/aspnet-ajax/ajax-controls-in-ajaxpanel-and-ajaxsettings.html - it treats RadAjaxPanels and RadAjaxManager, but the approach for asp:UpdatePanels and RadAjaxManager settings is the same.

    You can take this further and consolidate the needed ajax setup on the page to avoid nesting in other places.

    I hope this helps.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top