Show/Hide weekends in TimelineView with resources

2 posts, 1 answers
  1. Robert
    Robert avatar
    15 posts
    Member since:
    Aug 2011

    Posted 15 Jan 2013 Link to this post

    I can't find out how to hide weekends in timelineview with resource grouping.

     I found an example with DayViewBase in your winforms demo, but for timelineview there is no DataAreaElement to use
    private void radSchedulerNavigator1_ShowWeekendStateChanged(object sender, StateChangedEventArgs args)        
      if (this.radSchedulerDemo.ActiveView as SchedulerDayViewBaseView != null)            
         (this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewElement).DataAreaElement.ScrollView.Value = Point.Empty;                 
         (this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewElement).DataAreaElement.Table.ScrollToWorkHours();            

    my ActiveView is SchedulerTimelineView
    and radSchedulerDemo.SchedulerElement.ViewElement is TimelineGroupingByResourcesElement datatype.

    Is any way how to make it work?

    Thank you

  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 17 Jan 2013 Link to this post

    Hello Robert,

    Thank you for contacting us.

    Currently, the TimelineView does not support hiding the weekends as it is designed to display continuous periods of time. The ShowWeekend option is only available in WeekView. Currently, we do not have any plans for implementing this feature for TimelineView. If more people request such, we will consider adding it in a future release.

    If you have any other questions, feel free to ask.

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top