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

ViewStartDate and ViewEndDate

1 Answer 53 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
SUA
Top achievements
Rank 2
SUA asked on 23 Feb 2009, 11:24 AM
Hi
How can I retrive ViewStartDate and ViewEndDate in the Load event, before any DefaultViewChanged events has occured?
I need it to populate my calendar at the time it is displayed first time.

- Thorgeir

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Feb 2009, 12:11 PM
Hi Thorgeir,

Try following code for retrieving the ViewStartDate and ViewEndDate of RadCalndar.

CS:
DateTime start = (DateTime)RadCalendar1.CalendarView.ViewStartDate;  
DateTime end = (DateTime)RadCalendar1.CalendarView.ViewEndDate; 

Thanks,
Princy.
Tags
Calendar
Asked by
SUA
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or