Change start date and time in Timeline view on button click

2 posts, 0 answers
  1. Prava kafle
    Prava kafle avatar
    212 posts
    Member since:
    Apr 2010

    Posted 03 Feb 2014 Link to this post

    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
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 06 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top