Hi,
I would like to change Scheduler's TimelineView range to certain Date and Time on button click event. I was able to change the start time but cannot change both at a time.How can I set Scheduler's Timeline date range and start time using c#?
DateTime start = ......SomeDate
DateTime selectedDate = new DateTime(start.Year, start.Month, start.Day);
rsTicketsSchedule.SelectedDate = selectedDate;
rsTicketsSchedule.SelectedView = SchedulerViewType.TimelineView;
TimeSpan tt = new TimeSpan(0, 600, 0);
rsTicketsSchedule.TimelineView.StartTime = rsTicketsSchedule.TimelineView.StartTime.Subtract(tt);
Thanks,
Prava
I would like to change Scheduler's TimelineView range to certain Date and Time on button click event. I was able to change the start time but cannot change both at a time.How can I set Scheduler's Timeline date range and start time using c#?
DateTime start = ......SomeDate
DateTime selectedDate = new DateTime(start.Year, start.Month, start.Day);
rsTicketsSchedule.SelectedDate = selectedDate;
rsTicketsSchedule.SelectedView = SchedulerViewType.TimelineView;
TimeSpan tt = new TimeSpan(0, 600, 0);
rsTicketsSchedule.TimelineView.StartTime = rsTicketsSchedule.TimelineView.StartTime.Subtract(tt);
Thanks,
Prava