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

MajorTickLength bug?

1 Answer 110 Views
This is a migrated thread and some comments may be shown as answers.
Christian Burkhardt
Top achievements
Rank 1
Christian Burkhardt asked on 09 May 2011, 09:56 AM

I'm trying to make several timeline views for ScheduleView. These views should be with the following increments: 1h, 2h, 4h, 12h and 1 day.

The problem I have is that the 1h and 12h view are displayed fine but the 2h, 4h, and day views are displayed with tick length of 6h. Do you know why this is happening?

You can find the code below. I have also a test solution if you need more details.

<scheduleView:RadScheduleView x:Name="ScheduleView" Margin="2" Grid.Column="2" AppointmentsSource="{Binding Appointments}">
     <scheduleView:TimelineViewDefinition Title="1h timeline" MajorTickLength="1h" MinorTickLength="1h" VisibleDays="7" MinTimeRulerExtent="10000" />
     <scheduleView:TimelineViewDefinition Title="2h timeline"  MajorTickLength="2h" MinorTickLength="2h" VisibleDays="14" MinTimeRulerExtent="5000" />
     <scheduleView:TimelineViewDefinition Title="4h timeline"  MajorTickLength="4h" MinorTickLength="4h" VisibleDays="14" MinTimeRulerExtent="5000" />
     <scheduleView:TimelineViewDefinition Title="12h timeline" MajorTickLength="12h" MinorTickLength="12h" VisibleDays="14" MinTimeRulerExtent="2000" />
     <scheduleView:TimelineViewDefinition Title="day timeline" MajorTickLength="1.00:00:00" MinorTickLength="1.00:00:00" VisibleDays="28" MinTimeRulerExtent="2500" />


1 Answer, 1 is accepted

Sort by
Valeri Hristov
Telerik team
answered on 10 May 2011, 10:05 AM
Hello Christian,

The Minor/MajorTickLength properties support only a set of inline values - 1min, 5min, 10min, 15min, 30min, 1h, 3h, 6h, 12h, 1day. Those are visible in the intellisense when you use RadScheduleView for WPF, but it seems that the Silverlight design assemblies are missing the type converter. I will schedule the design time problem for a resolution, most probably the fix will be available with the internal build next week.

To make custom ticks you need to use the full syntax of the Major/MinorTickLength properties (even after we fix the design-time problem), for example if you want 4h ticks, you should use the following XAML:
<telerik:TimelineViewDefinition Title="4h timeline" VisibleDays="14" MinTimeRulerExtent="5000">
  <telerik:FixedTickLengthProvider TickLength="4:0:0" />
  <telerik:FixedTickLengthProvider TickLength="4:0:0" />

Valeri Hristov
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
Asked by
Christian Burkhardt
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question