Figuring out Changing Months

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 21 May 2010 Link to this post

    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.
  2. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 25 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top