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

Javascript SCRIPT5007: Unable to get property 'ChangePageSizeComboHandler' of undefined or null reference

3 Answers 257 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pirooz
Top achievements
Rank 1
Pirooz asked on 29 Jan 2013, 01:33 AM
I have a RadMultiPage dropped in on a SharePoint 2010 webpart page. The RadMultipage is associated with a RadTabstrip and has been setup for 'load on demand' behavior as described in the demo:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

I use identical techniques and load user controls directly into each RadPageView. The problem is 3 of the user controls contain a RadGrid and when the tab item is clicked and the page view is loaded, I get the error as shown in the image linked below.

It fails in not only IE 10 but in IE 9, FF and Chrome too. Although the errors are not the same for FF and Chrome.

Other things to note:

A regular asp ScriptManager is used from the default master page in SP 2010.
Controls are ajaxified using a RadAjaxManager.
The RadAjaxManager, a RadFormDecorator and a RadSkinManager are added to the page programmatically.
A RadStyleSheet manager has been added to the page declaratively (for now).
All the web.config sections have been checked for correctness to support the RadAjaxManager and RadStyleSheetManager from Telerik documentation and prior posts on Telerik forums.

Please shed some light on how to fix this issue.

Thanks.

 

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 30 Jan 2013, 04:16 PM
Hi Pirooz,

It appears that the JavaScript file that contains the ChangePageSizeComboHandler function is not loaded properly.
Could you please make sure that you have added the AjaxSetting programmatically(as described here)?


Kind regards,
Kalina
the Telerik team
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 their blog feed now.
0
Pirooz
Top achievements
Rank 1
answered on 30 Jan 2013, 08:17 PM
Hey Kalina,

I have resolved this issue. Please note that your response was related to using a WebPart. At no point did I mention using a WebPart. The control I am using directly inherits from the WebPartPage class. I had seen the link prior to posting here. Please be careful when responding, I had provided the specific details for a reason.

Anyhow, the issue is related to Microsoft Ajax scripts not working correctly. I updated our SharePoint 2010 environment to the December 2012 CU which resolved the problem.

The Microsoft KB article can be found here:
http://support.microsoft.com/kb/2596955

Thanks.
0
Kalina
Telerik team
answered on 31 Jan 2013, 08:37 AM
Hi Pirooz,

Please excuse me for misunderstanding.

I suppose that this statement has confused me "I have a RadMultiPage dropped in on a SharePoint 2010 webpart page."  Simply the programmers( or users ) usually drop WebParts on a Web Part page.

I am glad that you have managed to find a solution. Indeed, there was an issue with scripts loaded via AJAX in SharePoint and this issue was resolved in the Microsoft Cumulative update from October 2011.  
Please feel free to use our community forum or contact us in a support ticket if you have additional questions.


Greetings,
Kalina
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
Pirooz
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Pirooz
Top achievements
Rank 1
Share this question
or