"Scroll to Specific Time Slot" failing in local environment

4 posts, 0 answers
  1. Grant
    Grant avatar
    163 posts
    Member since:
    Jul 2016

    Posted 11 Oct 2018 Link to this post

    Hi, 

    As my title says the "Scroll to Specific Time Slot" (https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/scrolling/scroll_to_given_time_slot) example does not work in my local environment. I've copied it letter-for-letter, exactly as it is in the example and without exception, it fails every time on the "scheduler.slotByElement(rows[i]);" line. it always returns null. the rows exits, the scheduler exists. it works in your demo but fails at that line in my code.

    PLEASE help as I have no clue what is happening. All that runs through my head is WTF over and over. 

    Note: that I am up-to-date with v2018.3.911

    Thanks, 
    Grant

  2. Dimitar
    Admin
    Dimitar avatar
    473 posts

    Posted 12 Oct 2018 Link to this post

    Hi Grant,

    The sample works as expected on my side with version 2018.3.911. Could you change the following Dojo snippet to follow your implementation, e.g. copy paste it into the snippet instead of the current one and send the modified version back to us to inspect what may be causing this error.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Grant
    Grant avatar
    163 posts
    Member since:
    Jul 2016

    Posted 15 Oct 2018 in reply to Dimitar Link to this post

    Morning Dimitar,

    Thanks for the response. 

    I've updated the sample you sent (https://dojo.telerik.com/OBawuGeZ/2) but as I said, I copied it exactly as it is in the example. So I've included some debug lines with explanations of what is happening in my local environment. I know it works in the example, but slotByElement() only returns null when I use it in my app.

    Please advise, thanks,
    Grant

     

  4. Dimitar
    Admin
    Dimitar avatar
    473 posts

    Posted 16 Oct 2018 Link to this post

    Hi Grant,

    I managed to reproduce the error on my side, when switching the Scheduler to Agenda View, as in this view there are no such timeslots. Are you testing with Agenda View? The other views throw no error. The How To article seems to not target Agenda view, so most probably we should remove it from the configuration to avoid misunderstanding.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top