Along with other main features like standard resources and resource grouping, the Q3 2009 release brought an additional view to the present ones (Day, Week and Month) – Timeline. Briefly said, it displays a certain number of consecutive time slots and like all other views, the Timeline view is configurable in almost the same way. Here is how it looks like by default:

 

image

 

… where each time slot is 1 day long (i.e. TimeSlotLength of the TimelineViewDefinition is equal to one day) and the date in each header is displayed in a “d-M-yyyy” format.

Let’s tweak a bit some of the settings related to the Timeline view and add some resources:

 

<telerik:RadScheduler Grid.Row="0" x:Name="scheduler" TimelineHeaderFormat="{}{0:H:mm tt}" GroupBy="Person" >
           
<telerik:RadScheduler.TimelineViewDefinition>
               
<telerik:TimelineViewDefinition DayStartTime="08:00:00" DayEndTime="19:00:00" TimeSlotLength="1:0:0" VisibleDays="1" />
            </
telerik:RadScheduler.TimelineViewDefinition>

           
<telerik:RadScheduler.ResourceTypes>
               
<telerik:ResourceType Name="Person" AllowMultipleSelection="True" >
                   
<telerik:ResourceType.Resources>
                       
<telerik:Resource ResourceName="Rosi" />
                        <
telerik:Resource ResourceName="Toti" />
                    </
telerik:ResourceType.Resources>
               
</telerik:ResourceType>
           
</telerik:RadScheduler.ResourceTypes>
           
<telerik:RadScheduler.ResourceStyleMappings>
               
<telerik:ResourceStyleMapping ResourceType="Person" ResourceName="Rosi" ResourceBrush="LightPink" /> 
                <
telerik:ResourceStyleMapping ResourceType="Person" ResourceName="Toti" ResourceBrush="LightBlue" /> 
            </
telerik:RadScheduler.ResourceStyleMappings>
       
</telerik:RadScheduler>
 

image

 

 

As you see setting the DayStartTime and DayEndTime properties allow us to show only working hours and thus concentrating on what is important.

 

Hope this will be of use!


yasen
About the Author

Yasen Yankov

Yasen Yankov

Comments

Comments are disabled in preview mode.