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

Scheduler sharepoint javascipt error b.TouchScrollExtender is null or not an object

5 Answers 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ilias
Top achievements
Rank 1
Ilias asked on 15 Feb 2011, 02:15 PM
Hi,
we are using RadControls for ASP.NET AJAX Q3 2010 in SharePoint 2010 custom user controls.
In general, if I have a scheduler in a user control and after adding the scripts programmatically as posted here (asp-updatepanel-and-radscheduler-issues) it works fine with update panel and the default ajax script manager of sharepoint.
The problem starts when using a RadTabStrip that loads to the RadMultiPage user controls programmatically. When the user selects the tab that loads a user control that contains a scheduler control then a javascript error occurs ('b.TouchScrollExtender' is null or not an object).
If I don't include the RadTabStrip into an update panel then I can select another tab and navigate away from the tab with the scheduler control, but if I use update panel or even RadAjaxManager and AddAjaxSetting programmataically then I cannot navigate away and do any other action.

Thank you in advance,
Ilias

5 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 21 Feb 2011, 01:22 PM
Hi Ilias,

Let me suggest you add the script references for RadScheduler and RadTabStrip through the ScriptManager  - as described in this help article.

Best wishes,
Kalina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ilias
Top achievements
Rank 1
answered on 21 Feb 2011, 01:53 PM
Hi,
I followed your suggestion but with no luck.
I had already added in the OnPreRender event the scripts for the scheduler, except of the script "Telerik.Web.UI.Scheduler.ContextMenu.RadScheduler.ContextMenu.js" which is not included in "Telerik.Web.UI, Version=2010.3.1317.35" dll which I use in SharePoint.
So I added also the following
//scripts for tabstrip
scriptManager.Scripts.Add(new ScriptReference("Telerik.Web.UI.Common.Scrolling.ScrollingScripts.js", telerikAssembly));
scriptManager.Scripts.Add(new ScriptReference("Telerik.Web.UI.Common.Navigation.NavigationScripts.js", telerikAssembly));
scriptManager.Scripts.Add(new ScriptReference("Telerik.Web.UI.TabStrip.RadTabStripScripts.js", telerikAssembly));
  
//scripts for multipage
scriptManager.Scripts.Add(new ScriptReference("Telerik.Web.UI.TabStrip.MultiPage.RadMultiPageScripts.js", telerikAssembly));
but I didn't see any difference. The javascript error continues to occur.
Maybe any other suggestion?
Thanks,
Ilias
0
Kalina
Telerik team
answered on 27 Feb 2011, 11:59 PM
Hello Ilias,

Please try removing the Telerik.Web.UI.Scheduler.ContextMenu.RadScheduler.ContextMenu.js registration, and register the Telerik.Web.UI.Scheduler.ContextMenu.Plugin.js instead.

Kind regards,
Kalina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ilias
Top achievements
Rank 1
answered on 28 Feb 2011, 11:45 AM
Hi,
I added Telerik.Web.UI.Scheduler.ContextMenu.Plugin.js but it didn't change anything.
After a postback happens the RadAjaxLoadingPanel never stops to render.
I believe it has to do with the scheduler and the tabstrip control, because if I use only the scheduler in a page it doesn't produce this kind of error but it works fine.
Thanks,
Ilias
0
Kalina
Telerik team
answered on 04 Mar 2011, 11:06 AM
Hello Ilias,

When a control that loads scripts on the run is displayed via Ajax request in SharePoint – it does not load it’s scripts. The only way to overcome this SharePoint bug is to register the scripts manually.
As I see - you have tried doing this for the RadScheduler and the RadTabStrip.
So the only thing that I can suggest you is to simplify the scenario that implement and avoid loading the RadSheduler via user control.

Kind regards,
Kalina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Scheduler
Asked by
Ilias
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Ilias
Top achievements
Rank 1
Share this question
or