WebForm_InitCallback causes empty stackspace javascript error

5 posts, 0 answers
  1. Thomas
    Thomas avatar
    13 posts
    Member since:
    Feb 2008

    Posted 03 Jun 2013 Link to this post

    Hello there,

    I have a SharePoint 2013 environment with a site collection running in 2010 mode.
    (My project is working in 2010 and 2013 as 2013 mode, I tested it in the same WebApplication and the same AppPool.)

    I have a RadPane / RadTreeView / ContextMenu.

    When I cause a PostBack by moving the splitter, expanding a pane, opening the context menu or whatever belonging to my custom user control using RadControls a postback is caused, the server is successfully proceeding the ajax request but on callback I get a recursive call of WebForm_InitCallback (_layouts/1031/init.debug.js) and the RadControls disapear:

    function DeferWebFormInitCallback()
    {ULSA13:;
        if (typeof(WebForm_InitCallback)=='function')
            window['_WebForm_InitCallback']=window['WebForm_InitCallback'];
        window['WebForm_InitCallback']=function ()
        {ULSA13:;
            if (firstCalled)
            {
                firstCalled=false;
                _callbackinitdelayed=true;
                _spBodyOnLoadFunctionNames.push('WebForm_InitCallback');
            }
            else
            {
                _callbackinitdelayed=false;
                if (typeof(window._WebForm_InitCallback)=='function')
                    window._WebForm_InitCallback();****
            }
        }
        if (typeof(WebForm_DoCallback)=='function')
            window['_WebForm_DoCallback']=window['WebForm_DoCallback'];
        window['WebForm_DoCallback']=function(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync)
        {ULSA13:;
            if (_callbackinitdelayed)
            {
                _callbackinitdelayed=false;
                if (_spBodyOnLoadFunctionNames !=null)
                {
                    var count=_spBodyOnLoadFunctionNames.length;
                    for (var i=0; i<count; i++)
                    {
                        if (_spBodyOnLoadFunctionNames[i]=="WebForm_InitCallback")
                        {
                            _spBodyOnLoadFunctionNames.splice(i,1);
                            break;
                        }
                    }
                }
                if (typeof(window._WebForm_InitCallback)=='function')
                    window._WebForm_InitCallback();
            }
            window._WebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync);
        }
    }

    The exception is thrown at the position marked with ****. The error in IE10 (document mode 9) is "Not enough stack space". In IE10 with document mode IE8 the error is "This object doesn't support this property or method."

    I'm running Telerik.Web.Design and Telerik.Web.UI version 2013.1.417.35.

    Please help me, I'm stuck :(
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 06 Jun 2013 Link to this post

    Hello Thomas,

    I see that you have opened an official support ticket regarding the same problem. In order to avoid duplicate posts I suggest that we continue the support communication in the official ticket. Once we resolve the problem you can share your findings with the community so others can benefit from them.

    Regards,
    Angel Petrov
    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. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 04 Nov 2014 in reply to Thomas Link to this post

    Did you get the issue fixed? if yes please share your findings, I have the same issue.

    Thanks
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 07 Nov 2014 Link to this post

    Hi Suresh,

    We had not received confirmation from the client that the issue is resolved but we believe that is due to the way the content is ajaxifyed. If you are also using AJAX please disable it and test the project again. If the issue is then not reproducible this will surely indicate us that the problem lies in the AJAX configuration.

    Regards,
    Angel Petrov
    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.

     
  6. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 17 Nov 2014 in reply to Angel Petrov Link to this post

    I had to set EnablePageHeadUpdate="False" on RadAjaxManager and it fixed the issue. I assume this is the right fix but this was not needed in SharePoint 2012.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017