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

Q2 2011 Release: ScrollIntoView no longer accepts DateTime-objects?

1 Answer 61 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Kristian
Top achievements
Rank 1
Kristian asked on 18 Jul 2011, 10:15 AM
Hi,

In my application I need to scroll the current time into view, and I therefore call the ScrollIntoview-method with a DateTime-object as parameter. In the Q1 release this was working fine, but in the Q2 release it seems this is no longer supported. (I get an InvalidCastException that says "Unable to cast object of type 'System.DateTime' to type 'Telerik.Windows.Controls.ScheduleView.IDateSpan'.")

Is this an intended change? If so, how can I to scroll a specified DateTime (or TimeSpan) into view in the Q2-release?


Thanks,
Kristian

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 19 Jul 2011, 07:18 AM
Hi Kristian,

This change is intended. The ScrollIntoView method now works with parameter of type Occurrence or Slot. If this became a common client request we will consider a method with parameter DateTime. Meanwhile   I suggest you use the FirstVisibleTime property to scroll to a specific time.


Best wishes,
Rosi
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ScheduleView
Asked by
Kristian
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or