Timeline view more than one year

2 posts, 0 answers
  1. AMF
    AMF avatar
    36 posts
    Member since:
    Mar 2011

    Posted 15 Feb 2013 Link to this post

    Hi all,

    Is it possible to use the timeline view to navigate more than 1 year ahead. In all the other views it's possible. How can I achive this in the timeline view with the navigation step at days.

  2. Plamen
    Plamen avatar
    132 posts

    Posted 20 Feb 2013 Link to this post

    Hi AMF,

    Thank you for writing.

    The time range that the timeline shows can be set with the RangeStartDate and RangeEndDate properties, where RangeEndDate must be bigger than RangeStartDate. The scheduler will not be able to navigate outside this range. The StartDate property sets the first date that is shown in the timeline view. This property should be greater than RangeStartDate and can’t be bigger than RangeEndDate. Here is a sample code snippet:
    this.radScheduler1.GetTimelineView().RangeStartDate = new DateTime(2010, 1, 1);
    this.radScheduler1.GetTimelineView().RangeEndDate = new DateTime(2013, 1, 1);
    this.radScheduler1.GetTimelineView().StartDate = new DateTime(2011, 1, 1);

    The default time scale can be set to any of the predefined values, or the user can select a new scale by simply right-clicking in the time table and selecting the preferable setting from the context menu. To change the time scaling to Days, for example, you need to use the ShowTimescale method:
    Timescales scale = Timescales.Days;

    I hope this helps.

    All the best,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top