Custom mapping between multiple ResourceType-s

2 posts, 0 answers
  1. Alin
    Alin avatar
    9 posts
    Member since:
    Oct 2014

    Posted 27 Mar 2015 Link to this post

    I have a RadScheduleView displaying Appointments for Room-s and Speaker-s resources using a TimelineViewDefinition:

    <UserControl x:Class="Scheduler.Views.SchedulerView"
                 d:DesignHeight="300" d:DesignWidth="300">
            <telerik:RadScheduleView AppointmentsSource="{Binding Appointments}"
                                     ResourceTypesSource="{Binding ResourcesTypes}" >
                    <!--<telerik:DayViewDefinition />
                    <telerik:WeekViewDefinition />
                    <telerik:TimelineViewDefinition MinTimeRulerExtent="1000" VisibleDays="2"
                                                    MinorTickLength="1h" MajorTickLength="6h" GroupTickLength="1d"
                        <telerik:DateGroupDescription />
                        <telerik:ResourceGroupDescription ResourceType="Room"/>
                        <telerik:ResourceGroupDescription ResourceType="Speaker"/>
                        <TextBlock Text="{Binding FormattedName}" Width="70" Margin="10" VerticalAlignment="Center" />

    using System.Collections.ObjectModel;
    using Telerik.Windows.Controls;
    using Telerik.Windows.Controls.ScheduleView;
    namespace Scheduler.Views
        public class SchedulerViewModel
            public SchedulerViewModel()
                ResourcesTypes = GenerateResourceTypes();
                Appointments   = new ObservableCollection<Appointment>();
            public ObservableCollection<Appointment> Appointments { get; set; }
            public ObservableCollection<ResourceType> ResourcesTypes { get; set; }
            private ObservableCollection<ResourceType> GenerateResourceTypes()
                var result = new ObservableCollection<ResourceType>();
                var roomType = new ResourceType("Room");
                var room1 = new Resource("Room Alfa");
                var room2 = new Resource("Room Beta");
                var room3 = new Resource("Room Gama");
                var speakerType = new ResourceType("Speaker");
                var speaker1 = new Resource("Tom");
                var speaker2 = new Resource("Bob");
                var speaker3 = new Resource("John");
                return result;

    Is it possible to create a custom mapping between Room-s and Speaker-s so that for "Room Alfa" and "Room Beta" only two speakers would be displayed "Bob" and "John" (only "Bob" and "John" have access to "Room Alfa" and "Room Beta"); and for "Room Gama" to display all the speakers "Tom", "Bob", "John" (all speakers have access to "Room Gama").

    Please see the attached file for more details.

    Thank you,
  2. Kalin
    Kalin avatar
    1333 posts

    Posted 31 Mar 2015 Link to this post

    Hello Marius,

    I'm afraid that with its current implementation, the ScheduleView control doesn't support hierarchical resources. However we have a SDK example that demonstrates how to simulate such a look using a TreeView control and a single level of Resources. You can find it on the following link:

    Hope this helps.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top