We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can schedule work week view show 7 days?

Thread ID:





59989 Apr 25,2007 08:12 PM UTC Apr 26,2007 10:13 AM UTC WinForms 1
Tags: ScheduleControl
Sean Greer
Asked On April 25, 2007 08:12 PM UTC

Subject pretty much sums up my question. I need to show all 7 days but I want the hour indicator to be shown as well. Can the control accomodate this?



Administrator [Syncfusion]
Replied On April 26, 2007 10:13 AM UTC

Currently, there is no property setting that would enable this display layout. But you can get it using a ScheduleViewType.CustomWeek setting. In the sample we ship, if you add the code below to the bottom of the Form's constructor, then your initial display would show 7 days with the time column. If you need it, we could work on a sample that could try to hook up the buttons to allow the user to page in this manner. It would be a natter of incrementing or decrementing the sunday below by 7 days.

DateTime sunday = DateTime.Now;
while (sunday.DayOfWeek != DayOfWeek.Sunday)
sunday = sunday.AddDays(-1);
new DateTime[]{sunday, sunday.AddDays(1), sunday.AddDays(2), sunday.AddDays(3),
sunday.AddDays(4), sunday.AddDays(5), sunday.AddDays(6)});

this.scheduleControl1.GetScheduleHost().SwitchTo(ScheduleViewType.CustomWeek, true);


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon