I have to change the number of weeks that appear in the calendar when user click some buttons.
So, I have the following code..
if (filter == "Month")
{
calendar.NumberOfWeeksInView = 6;
calendar.MoveToDate = DateTime.Now;
calendar.ShowInlineEvents = true;
}
else if (filter == "Week")
{
calendar.NumberOfWeeksInView = 1;
calendar.MoveToDate = DateTime.Now;
calendar.ShowInlineEvents = true;
}
But when the NumberOfWeeksInView = 1, the date picker does not show the inline view.
But when I set NumberOfWeeksInView = 6, then it shows fine.
Maybe this is a bug.
What I expect is to show the dates of the week with inline events like this.