Kendo Scheduler Scrolling

6 posts, 0 answers
  1. ramana
    ramana avatar
    3 posts
    Member since:
    Apr 2015

    Posted 01 Apr 2015 Link to this post

    In kendo scheduler in week/month view when an appointment is created that has two day time span and if the scheduler has some default scroll.
    Then if i want to select the appointment by clicking on that the scroll is happening to point to second day.Is there any way to avoid this.
     I want to handle the appoinrment click event.
    Thanks in Advance
  2. Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 03 Apr 2015 Link to this post

    Hi Ramana,

    Normally, the Scheduler scrolls its view, so that selected events are fully visible, if possible. I am not sure I understand what is your scenario exactly? Is the discussed behavior reproduced on the demo below? If yes, what are the exact steps? If not, what should be changed (you can use the "Edit this example" button to provide a modified version).

    http://demos.telerik.com/kendo-ui/scheduler/selection

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. ramana
    ramana avatar
    3 posts
    Member since:
    Apr 2015

    Posted 06 Apr 2015 in reply to Dimo Link to this post

      Hi Dimo,

      Yes it is as in the demo link mentioned by you.I will tell the scenario.First you need to scroll down the scheduler so that 5PM is visible and now select the event on 13th June.Now the scheduler is scrolled to top.

    What exactly i want is although it is scrolled to top i want to fire the click event to select the event.

    Regards,

    K V Ramana Reddy

     

  4. Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 07 Apr 2015 Link to this post

    Hello Ramana,

    Normally, you would enable Scheduler selection and will subscribe to the widget's change event. In this way you will know when a given event has been clicked (selected). The fact that the Scheduler view may be scrolled at this point will not make any difference with regard to the event arguments.

    http://demos.telerik.com/kendo-ui/scheduler/events

    http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#events-change

    Even if for some reason you want to add a custom click handler to the .k-event elements, this will still work, no matter that the Scheduler view is scrolled if the clicked event is outside the view's visible area.

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. jantoine
    jantoine avatar
    7 posts
    Member since:
    Jul 2012

    Posted 20 May 2015 in reply to Dimo Link to this post

    I have a related issue with "Scheduler scrolls its view, so that selected events are fully visible" that you stated in your first reply.

    I have all day slots and when a user clicks on that slot the scheduler always scrolls to midnight. This is jarring for the user because they are referencing other events on the screen. I don't see why if the all day is statically on the top of the view that it should change the scroll position in this scenario.

     

  6. Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 21 May 2015 Link to this post

    Hi Jon,

    This is a bug in the Scheduler's internal scrolling mechanism. We have fixed it and changes will take effect in the next official and internal builds. Thanks for pointing it out.

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top