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

Timeline view more than one year

1 Answer 55 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
AMF
Top achievements
Rank 2
AMF asked on 15 Feb 2013, 09:46 AM
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.

greetings 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 20 Feb 2013, 08:31 AM
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;
timelineView.ShowTimescale(scale);

I hope this helps.

All the best,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Scheduler and Reminder
Asked by
AMF
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or