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.
Unfortunately, activation email could not send to your email. Please try again.

Scheduler Dates

Thread ID:





62715 Jun 20,2007 05:05 PM Jun 22,2007 09:20 PM ASP.NET Web Forms (Classic) 3
Tags: Tools
James Thomas
Asked On June 20, 2007 05:05 PM


I have a scheduler control that displays 5 days at a time (week) and hides weekends. I would like the advance controls to move forward 5 days instead of one day. Is there any way to do this that I'm missing?



Gokul B [Syncfusion]
Replied On June 20, 2007 07:59 PM

Hi James,

Attached is the sample as per your requirement. In our sample we have advance the date to forward 5 days from the date displayed once the VisibleDay button of the Scheduler control is pressed.


* We have acheived this behaviour using the Scheduler control "CheckVisibleDay" event.
* We used Session variable to persist the advanced date to take effect on Page reload.

Let us know if our sample helps.

Thanks for using syncfusion products.

Gokulkumar B

James Thomas
Replied On June 22, 2007 07:16 PM

This actually doesn't work when going back - it just advances 5 days regardless (I realized after I sent this that I actually wanted it to advance 7 but that's not a big deal). The CheckVisibleDayEventArgs does not have an option for which direction was clicked.

Any thoughts?

James Thomas
Replied On June 22, 2007 09:20 PM

I actually got this to work by overloading using the StartDateChanged event as follows:

protected void Scheduler1_StartDateChanged(object sender, StartDateChangedEventArgs e)
if (e.OldStartDate < Scheduler1.StartDate) // Moving forward
Scheduler1.StartDate = AdjustDateToMonday(Scheduler1.StartDate, true);
else // Moving backward
Scheduler1.StartDate = AdjustDateToMonday(Scheduler1.StartDate, false);

AdjustDateToMonday simply takes the date and adds (or subtracts) the correct number of days so we always wind up on a Monday when going forward or backwards.


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.

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.