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

6 posts, 0 answers
  1. Ilias
    Ilias avatar
    4 posts
    Member since:
    Nov 2010

    Posted 15 Feb 2011 Link to this post

    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
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 21 Feb 2011 Link to this post

    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!
  3. Ilias
    Ilias avatar
    4 posts
    Member since:
    Nov 2010

    Posted 21 Feb 2011 Link to this post

    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
  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 27 Feb 2011 Link to this post

    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!
  5. Ilias
    Ilias avatar
    4 posts
    Member since:
    Nov 2010

    Posted 28 Feb 2011 Link to this post

    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
  6. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 04 Mar 2011 Link to this post

    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!
Back to Top