Calendar month date from - to

4 posts, 1 answers
  1. Jon Procter
    Jon Procter avatar
    5 posts
    Member since:
    May 2010

    Posted 27 May 2010 Link to this post

    Is there a property that will give me the first "displayed date" of the asp.net radCalendar for the month? It is usually a date from the previous month obviously, for example in this month (May 2010), because the 1st is a Saturday, the first date shown on the "May leaf" is Monday 26th April and the last date is Sunday 6th June (i.e. +41 days). If there is not a property, is there an easy way to calculate it please?

  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 May 2010 Link to this post

    Hi Jon,

    It is possible to get the first displayed date of a calendar view by using following code.

    C#:
     
          RadCalendar1.CalendarView.ViewStartDate 

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon Procter
    Jon Procter avatar
    5 posts
    Member since:
    May 2010

    Posted 28 May 2010 Link to this post

    Perfect thanks Princy.

    Jon
  5. Lawrence
    Lawrence avatar
    2 posts
    Member since:
    Oct 2011

    Posted 22 Nov 2011 Link to this post

    That works on page load.  However, when you move from the original date range to the next one using the forward control and then go back again, the dates are all messed up.  This is frustrating.  It seems like it would be an obvious thing to expose this property.  I mean you use this date in calculating the dates to show and where to show them, I am sure. 
    --Larry--
Back to Top