Change start date and time in Timeline view on button click

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

    Posted 03 Feb 2014 Link to this post


    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);

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 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.

    Boyan Dimitrov
    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.
Back to Top