Timeline view by various time groups

4 posts, 0 answers
  1. Dan
    Dan avatar
    22 posts
    Member since:
    Jun 2011

    Posted 22 Feb 2012 Link to this post

    Is there a way to have scheduleView timeline group day day, week, month, quarter in a way that the user can specify the grouping they want.  Attached is a proposed mockup of what i'm trying to accomplish.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 24 Feb 2012 Link to this post

    Hello Dan,

    You cannot have the ScheduleView grouped exactly as in the picture. Anyway, you can achieve various types of grouping using custom TickProviders. I've attached an example to demonstrate some of them. Please download the attachment and give it a try.

    If you have any additional questions, write to us again.

    Greetings,
    Yana
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dan
    Dan avatar
    22 posts
    Member since:
    Jun 2011

    Posted 24 Feb 2012 Link to this post

    I might be able to do something with this.  Is there a way for the timeslot widths to be set / adjusted to a fixed width so as more visable days are added, the slots don't shrink but rather stay there fixed size and the timeline will just scroll horizontally to show all the time slots.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Feb 2012 Link to this post

    Hi Dan,

    You can use MinTimeRulerExtent property of the ViewDefinition, for example try it like this:

    <telerik:RadScheduleView Grid.Row="1">
        <telerik:RadScheduleView.AppointmentsSource>
            <telerik:ObservableAppointmentCollection />
        </telerik:RadScheduleView.AppointmentsSource>
        <telerik:RadScheduleView.ViewDefinitions>
            <telerik:TimelineViewDefinition VisibleDays="350" MajorTickLength="1day" MinorTickLength="1day"
                    TimerulerMajorTickStringFormat="{}{0:dd}" MinTimeRulerExtent="8000">
                <telerik:TimelineViewDefinition.GroupTickLength>
                    <my:MonthlyTickProvider />
                </telerik:TimelineViewDefinition.GroupTickLength>
            </telerik:TimelineViewDefinition>
        </telerik:RadScheduleView.ViewDefinitions>
    </telerik:RadScheduleView>

    More information how to configure the TimeRuler can be found here.
    Hope this helps.

    All the best,
    Yana
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top