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

Set viewed month

1 Answer 43 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 17 Apr 2018, 04:23 PM

How can I create a calendar such that a specific month is displayed?

For example, I want to open the calendar to initially show next month.

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 17 Apr 2018, 05:53 PM
Hi Ian,

Setting the DisplayDate property to DateTime.Now.AddMonths(1) should set it to the next month. For example:

private void RadCalendar_OnNativeControlLoaded(object sender, EventArgs e)
{
    try
    {
        radCalendar.TrySetViewMode(CalendarViewMode.Month);
        radCalendar.DisplayDate = DateTime.Now.AddMonths(1);
    }
    catch (Exception ex)
    {
 
    }
}

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
Ian
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or