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

Schedule using months

1 Answer 22 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 05 Mar 2014, 03:18 PM
Hi

I'm trying to use the ScheduleView component to display "targets". These targets run from month to month within a predefined date range. Implementing this using ScheduleView has raised a number of questions which I hope you'll be able to clarify for me:

Below is my code to display the scheduler with the various properties set.
<telerik:RadScheduleView x:Name="scheduleView"
                         AppointmentsSource="{Binding Appointments}"
                         SnapAppointments="True"
                         NavigationHeaderVisibility="Visible"
                         CurrentDate="{Binding CurrentDate}"
                         >
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:TimelineViewDefinition VisibleDays="1500"
                                        GroupTickLength="1y"
                                        MajorTickLength="1m"
                                        MinorTickLength="1m"
                                        TimerulerGroupStringFormat="{}{0:yyyy}"
                                        TimerulerMajorTickStringFormat="{}{0:MMM}"
                                        TimerulerMinorTickStringFormat="{}{0:MMM}"
                                        ShowTimeRuler="True"
                                        MinTimeRulerExtent="1"
                                        MaxTimeRulerExtent="Infinity"/>
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

1. As you can see in the attached image, my "CurrentDate" is March, 2009 but since this is not the start of the year, the groupings get out of line. Is there any way round this?

2. The targets run from the start of a month to the end of the specified end date's month i.e. a target cannot start / end in the middle of a month. I have configured the scheduler to only show month "buckets" and snap to tick. Is it possible to specify units for the visible range or allow a horizontal scrollbar to be displayed? (I don't want the user to have to select a date range since I already know what period they are interested in based on the start and end dates of the target's owning item.)

3. I've been playing around with the VisibleDays property of the TimelineDefinition to see if I can work around any of my issues but when I set VisibleDays greater than around 1540, an exception is generated. I know that this is a huge number of days but when you're only concerned with months, it's only around 50 columns. 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Mar 2014, 12:04 PM
Hi Keith,

I'd suggest that you implement  a custom TickProvider, please check the ScheduleView MonthTickProvider example in our XAML SDK Repository at the following link:
https://github.com/telerik/xaml-sdk/tree/master/ScheduleView/MonthTickProvider

The same approach can be used to create YearTickProvider. Try it and if you have any issues or concerns, write to us again.

Regards,
Yana
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
ScheduleView
Asked by
Keith
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or