Navigating within RadScheduleView

2 posts, 0 answers
  1. Philipp
    Philipp avatar
    17 posts
    Member since:
    Jun 2011

    Posted 14 May 2014 Link to this post

    Hi all

    I have two different RadScheduleViews, both grouped by a shared collection of resources. A resource represents an employee.

    Now, from my group header (for which the data context is the employee resource), I would like to navigate to the same employee on the other RadScheduleView. As far as I can tell, I need an appointment to do so with the RadScheduleView.ScrollIntoView, which I can determine from my resource. However, that means I can't navigate if there are now appointments for the employee yet. How can I accomplish this?

    Thanks,
    Philipp
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 19 May 2014 Link to this post

    Hi Philipp,

    Actually you could use ScrollIntoView method with a Slot as well instead of Appointment, just make sure that you assign e Resource to this Slot, here is a quick example:

    var slotToNavigateTo = new Slot(new DateTime(2014,5,25,8,0,0), new DateTime(2014, 5, 25, 10, 0, 0));
    slotToNavigateTo.Resources.Add(new Resource("Speaker 1", "Speaker"));
    ScheduleView.ScrollIntoView(slotToNavigateTo);

    Hope this helps.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top