This is a migrated thread and some comments may be shown as answers.

Figuring out Changing Months

1 Answer 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 21 May 2010, 02:21 PM
Hello,

I need to figure out a way to determine when a user changes the month on the client-side.  So when the user goes from 5/2010 to 6/2010, I need to run special code.  I don't see anything that seems to have the old date and new date.  Also, does the RadScheduler store the current visible start/end date on the client like it does on the server?

I'm binding via a web service, FYI.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Brian Mains
Top achievements
Rank 1
answered on 25 May 2010, 04:26 PM
Ok, so basically, I store a variable to a date:

var _date = null;

And use this to store the last date, then use getMonth() and getFullYear() to get the month/year for comparison to see if the date changed from the newly selected date in the NavigationComplete event on the client.

Also, the Telerik.Web.UI.Scheduler.DateTime component also has some helpful utilities for all of this too.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Brian Mains
Top achievements
Rank 1
Share this question
or