Scheduler javascript does not work correctly in week view mode

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    26 posts
    Member since:
    Dec 2007

    Posted 23 Jul 2013 Link to this post

    Hi there,

    I have a problem with the scheduler when running it in week mode.  When it is in week mode, selection of timeslots does not seem to work correctly.  Clicking on a slot does not highlight the slot, and trying to click and drag does not highlight the dragged section.  Subsequently, when trying to query the selected slots via the scheduler.get_selectedSlots() function, nothing is returned.

    To replicate the issue, please do the following:

    1) Go to http://clientdemos.spawtz.com
    2) Click on "Administrator View" in the left hand menu
    3) Click "View Calendar"
    4) Select any slot in the scheduler and note that the slot is selected correctly.  Then right click and select "Create booking" and note that you get taken to the create booking page correctly.
    5) Click close to get back to the calendar.
    6) Change the drop down above the calendar from "Day View" to "Week View"
    7) Try to click on any time slot and note that the selection does not happen.  And if you try and click and drag, the standard browser behaviour occurs (ie, it selects the actual HTML elements)

    If I run it locally, and then use Chrome's developer tools to find where any exceptions are thrown, I find that when loading the page there is  a DOMException thrown in this file:

    http://localhost/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_Content_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.915.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a9799c67b-558a-475d-bf30-a0ccf0dbb8b7%3a16e4e7cd%3af7645509%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1%3a2e42e72a%3aef347303%3a24ee1bba%3af46195d3%3a874f8ea2%3a4c8be21a%3a650fdad%3ad40f7d5c%3a431f16a4%3a97c1ce76%3ab68dcd79%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289


    The details of the exception are "SyntaxError: DOM Exception 12" ,"Error: An invalid or illegal string was specified."  But of course, that file is minified, so I can't really delve any further into, nor do I know that is the issue or not, or if it is a red herring, as it seems to be thrown on the day view page as well.

    Can you offer any advice on how I might be able to track this issue down?

    Thanks for your help.

    Kind regards,

    Matthew
  2. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 26 Jul 2013 Link to this post

    Hello,

     
    The issue is quite unusual indeed- it may be caused by the custom javascript and CSS that you are using on the page so I will recommend you to try to remove them and test again. 

    I have tested the issue on-our on-line demos and is seems that the issue is not replicable any more so you can also test with the latest version of RadControls.

    Regards,
    Plamen
    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
Back to Top