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

Scrolling to a ResourceGroup

1 Answer 99 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jakkie Esschert van den
Top achievements
Rank 1
Jakkie Esschert van den asked on 13 Jun 2012, 03:02 PM

I've got a ScheduleView with several resources, which makes the ScheduleView display a scrollbar. Now I'm trying to make the  ScheduleView display a specific appointment using ScrollIntoView, but I can't make the  ScheduleView scroll to the correct resource, it only scrolls to the correct time.

Is ScrollIntoView supposed to also scroll the GroupHeaders? If not, is there another way to scroll a specific resource into view?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Jun 2012, 01:28 PM
Hello Jakkie,

ScrollIntoView can scroll the view to a certain Slot. So you can set a Resource to the Slot in order to achieve the needed appproach.  Here is a sample code:

var sl = new Slot()
{
    Start = DateTime.Now,
    End = DateTime.Now.AddHours(1)
};
sl.Resources.Add(new Resource("Room 10", "Location"));
ScheduleView.ScrollIntoView(sl);

Hope this helps.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Jakkie Esschert van den
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or