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

WebForm_InitCallback causes empty stackspace javascript error

4 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 03 Jun 2013, 04:14 PM
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 :(

4 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 06 Jun 2013, 11:28 AM
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.
0
Suresh
Top achievements
Rank 1
answered on 04 Nov 2014, 03:35 PM
Did you get the issue fixed? if yes please share your findings, I have the same issue.

Thanks
0
Angel Petrov
Telerik team
answered on 07 Nov 2014, 01:18 PM
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.

 
0
Suresh
Top achievements
Rank 1
answered on 17 Nov 2014, 06:45 PM
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.
Tags
General Discussions
Asked by
Thomas
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Suresh
Top achievements
Rank 1
Share this question
or