showweekend checkbox

2 posts, 0 answers
  1. Ming Zhao
    Ming Zhao avatar
    44 posts
    Member since:
    Sep 2009

    Posted 07 Apr 2010 Link to this post

    there is a showweekend checkbox for weeklyview and monthlyview.

    We want to disable showeekend checkbox and make it invisible.

    How can we do this?
  2. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 12 Apr 2010 Link to this post

    Hi Ming Zhao,

    In order to hide the "ShowWeekend" check box, you can do the following:

    1.  Subscribe to the WeekViewClick and MonthViewClick events of RadSchedulerNavigator.

    this.radSchedulerNavigator1.WeekViewClick += new EventHandler(radSchedulerNavigator1_WeekViewClick);

    this.radSchedulerNavigator1.MonthViewClick += new EventHandler(radSchedulerNavigator1_MonthViewClick);

    2. Hide the check box in the event handlers.

    void radSchedulerNavigator1_MonthViewClick(object sender, EventArgs e)
        this.radSchedulerNavigator1.ShowWeekendCheckBox.Visibility = ElementVisibility.Collapsed;

    void radSchedulerNavigator1_WeekViewClick(object sender, EventArgs e)
        this.radSchedulerNavigator1.ShowWeekendCheckBox.Visibility = ElementVisibility.Collapsed;

    I hope this helps.

    Best wishes,
    Boyko Markov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top