This is a migrated thread and some comments may be shown as answers.

ScrollIntoView Not Working When DayStartTime Used

3 Answers 28 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 20 Nov 2013, 09:54 PM
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

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 25 Nov 2013, 11:37 AM
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 >>
0
Anthony
Top achievements
Rank 1
Veteran
answered on 25 Nov 2013, 09:48 PM
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
0
Kalin
Telerik team
answered on 27 Nov 2013, 11:21 AM
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 >>
Tags
ScheduleView
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Kalin
Telerik team
Anthony
Top achievements
Rank 1
Veteran
Share this question
or