Schedule using months

2 posts, 0 answers
  1. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 05 Mar 2014 Link to this post

    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. 
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Mar 2014 Link to this post

    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.

  3. DevCraft banner
Back to Top