Hello Raoul,
Indeed, the
BringAppointmentIntoView method is not available in Q2 2011. I am posting here the code of this method so you can use it with the Q2 2011 version:
public
static
void
BringAppointmentIntoView(IEvent appointment, RadScheduler scheduler)
{
scheduler.ActiveView.StartDate = appointment.Start.AddDays(-1);
int
resIndex = scheduler.Resources.IndexOf(scheduler.Resources.GetById(appointment.ResourceId));
SchedulerDayViewGroupedByResourceElement dayViewGrouped = scheduler.SchedulerElement.ViewElement
as
SchedulerDayViewGroupedByResourceElement;
SchedulerMonthViewGroupedByResourceElement monthViewGrouped = scheduler.SchedulerElement.ViewElement
as
SchedulerMonthViewGroupedByResourceElement;
TimelineGroupingByResourcesElement timelineGrouped = scheduler.SchedulerElement.ViewElement
as
TimelineGroupingByResourcesElement;
if
(dayViewGrouped !=
null
)
{
dayViewGrouped.NavigateToResource(resIndex);
foreach
(SchedulerDayViewElement dvElement
in
dayViewGrouped.GetDayViewElements())
{
dvElement.DataAreaElement.Table.ScrollToTime(TimeSpan.FromHours(appointment.Start.Hour));
}
}
if
(monthViewGrouped !=
null
)
{
monthViewGrouped.NavigateToResource(resIndex);
}
if
(timelineGrouped !=
null
)
{
timelineGrouped.NavigateToResource(resIndex);
}
SchedulerDayViewElement dayViewElement = scheduler.SchedulerElement.ViewElement
as
SchedulerDayViewElement;
if
(dayViewElement !=
null
)
{
dayViewElement.DataAreaElement.Table.ScrollToTime(TimeSpan.FromHours(appointment.Start.Hour));
}
}
I hope this will help you. If you have any additional questions, feel free to ask.
All the best,
Ivan Todorov
the Telerik team