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

Show Only Certain Months in RadCalendar

3 Answers 91 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Brendan Enrick
Top achievements
Rank 1
Brendan Enrick asked on 24 Sep 2009, 03:22 PM
Hello,

I am using the calendar with three months showing at a time. I want the control's default view to have the current month be on the right and have last month in the middle and two months ago on the left. Is there an easy way to do this? I looked at the documentation and did not see how.

Thanks,
Brendan

3 Answers, 1 is accepted

Sort by
0
Brendan Enrick
Top achievements
Rank 1
answered on 28 Sep 2009, 03:26 PM
Hi,

Sorry about the second post. Just want to make sure the post doesn't fall through the cracks here. Perhaps I should refine my explanation a bit.

Basically I have the calendar configured to show 3 months. They are the following months.
[this month] [next month] [two months from now]

Instead of showing those three months I want it to default to.
[two months ago] [last month] [this month]

I greatly appreciate any and all help you can offer.

Thanks,
Brendan
0
Kaloyan
Telerik team
answered on 30 Sep 2009, 07:54 AM
Hello Brendan Enrick,

Sorry for the late response. You may consider using the DisplayDate property of the RadDatePicker. Check the code posted bellow, that is giving the answer to your question:

calendar.DisplayDate = DateTime.Now.AddMonths(-2);

Hope this helps.

Best wishes,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Brendan Enrick
Top achievements
Rank 1
answered on 30 Sep 2009, 05:35 PM
Thanks Kaloyan that worked very well. Not sure how I didn't find that.
Brendan
Tags
Calendar
Asked by
Brendan Enrick
Top achievements
Rank 1
Answers by
Brendan Enrick
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or