Scrolling to a ResourceGroup

2 posts, 0 answers
  1. Jakkie Esschert van den
    Jakkie Esschert van den avatar
    61 posts
    Member since:
    Sep 2009

    Posted 13 Jun 2012 Link to this post

    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?

  2. Yana
    Yana avatar
    5039 posts

    Posted 18 Jun 2012 Link to this post

    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"));

    Hope this helps.

    the Telerik team

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

Back to Top