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

Change start date and time in Timeline view on button click

1 Answer 92 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 04 Feb 2014, 03:21 AM
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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 06 Feb 2014, 04:23 PM
Hello Prava,

Thank you for contacting Telerik Support.

Please find attached a sample project that implements very similar scenario.

Hope that this will be helpful.

Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or