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

Appointment Item Height in Timeline View

4 Answers 321 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
JiFong Chen
Top achievements
Rank 1
JiFong Chen asked on 27 Jun 2011, 06:03 AM

Is there a way to change the appointment item height in timeline view?

I tried with:

<Style x:Key="CategoryStyle" TargetType="telerik:AppointmentItem">
  <Setter Property="Height" Value="100" />
</Style>

and when I compile+run, the height doesn't change.

Please advise.

4 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 27 Jun 2011, 09:45 AM
Hello JiFong,

In TimelineView definition you could set StretchGroupHeaders property to True so that group headers take all availabe space and then if you want AppointmentItems to stretch also you have to set StretchAppointments property to True.
If you do not want to stretch group headers and appointment items but just to increase the height of AppointmentItems then all you have to do is to set MinAppointmentHeight of RadScheduleView.

Let us know if you need more information/

All the best,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JiFong Chen
Top achievements
Rank 1
answered on 27 Jun 2011, 11:37 AM
Thank you very much!
0
Rebecca
Top achievements
Rank 1
answered on 10 Oct 2012, 07:42 PM
Hi (Hristo),

I tried setting the TimelineViewDefinition's StretchAppointments property to True as you suggested and it did not stretch the appointment.

This is what I have in code:
<telerik:RadScheduleView.ViewDefinitions>
  <telerik:TimelineViewDefinition VisibleDays="1" 
     MinTimeRulerExtent="55"
     MaxTimeRulerExtent="{Binding ActualWidth, ElementName=ParentElement}"
     MajorTickLength="1h"
     MinorTickLength="15min"
     StretchGroupHeaders ="True"
     StretchAppointments="True"
     GroupHeaderDateStringFormat="{StaticResource CustomDateStringFormat}"
     TimerulerMajorTickStringFormat="{StaticResource CustomTimeStringFormat}" />
</telerik:RadScheduleView.ViewDefinitions>



The only way that I have been able to increase the size of the appointment is to specify a value for the MinAppointmentHeight property of the RadScheduleView.

However, this is not what I would prefer using because I would like it to stretch.

I am looking forward to hearing your suggestions on how to achieve this.

-Rebecca


0
Vladi
Telerik team
answered on 15 Oct 2012, 02:25 PM
Hi Rebecca,

The StretchGroupHeaders and StretchAppointments properties are designed to be used when there are Resources in the ScheduleView and if there isn't any resources in the control they will not change the behavior of the appointments in Timeline view.

If you add Resources in your project and then set the StretchGroupHeaders/StretchAppointments properties the appointments in those resources will stretch.

If you want to change the height of the appointments in Timeline view you need to set the MinAppointmentHeight property.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
JiFong Chen
Top achievements
Rank 1
Answers by
Hristo
Telerik team
JiFong Chen
Top achievements
Rank 1
Rebecca
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or