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

Calendar month date from - to

3 Answers 47 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jon Procter
Top achievements
Rank 1
Jon Procter asked on 27 May 2010, 07:45 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 28 May 2010, 08:02 AM
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.
0
Jon Procter
Top achievements
Rank 1
answered on 28 May 2010, 04:04 PM
Perfect thanks Princy.

Jon
0
Lawrence
Top achievements
Rank 1
answered on 22 Nov 2011, 10:45 PM
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--
Tags
Calendar
Asked by
Jon Procter
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Jon Procter
Top achievements
Rank 1
Lawrence
Top achievements
Rank 1
Share this question
or