ScrollIntoView Not Working When DayStartTime Used

4 posts, 0 answers
  1. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 20 Nov 2013 Link to this post

    Hi,

    If I have the DayStartTime set to 06:00 am and an appointment starting at 05:00 am and ending at 10:00 am ScrollIntoView does not work even though the appointment is mostly visible on the calendar.

    I know my code is working in general because an appointment that starts after the DayStartTime scrolls into view perfectly.

    The logic should be that if any of the appointment is visible it should be able to scroll into view.

    Thanks
    Anthony
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 25 Nov 2013 Link to this post

    Hello Anthony,

    In the explained scenario the ScheduleView tries to scroll to the Start time of the Appointment and it couldn't as it is not visible. However I can suggest you a workaround in which implementation you can check whether the start of the Appointments is before the DayStartTime and if so to create new Slot which starts at the DayStartTime and scroll it into view. Please check the attached sample project which demonstrates the exact approach.

    Hope this works for you.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 25 Nov 2013 Link to this post

    Hi Kalin,

    Thanks for the work around, it worked for me after I made a couple of minor tweaks.

    1. I am using resources so added the correct resource to the slot to get it to scroll to the correct horizontal position.
    2. I am using a ScheduleViewStyleSelector for my slots so I added a transparent style for this scrolled to slot so that it would not show on the calendar.

    Long term, it would be good to see this addressed in the RadScheduleView so a work around is not needed.

    Thanks
    Anthony
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 27 Nov 2013 Link to this post

    Hi Anthony,

    I'm glad the work around works for you. However I logged that as a feature request in our Feedback portal, you can vote and track its status on the following link:
    http://feedback.telerik.com/Project/143/Feedback/Details/66371-make-possible-to-scrollintoview-an-appointment-which-starts-before-the-daystartti

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top