Inlineevents does not show then the NumberOfWeeksInView is 1

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.



1 Reply

MS Muniappan Subramanian Syncfusion Team July 21, 2021 12:32 PM UTC

Hi Buddhima,  
 
Thank you for contacting Syncfusion support.  
 
We have checked your reported issue “Inlineevents does not show then the NumberOfWeeksInView is 1”. As per the current implementation of calendar Inline view considers NumberOfWeeksInView as only 6. For other count, only agenda view will be displayed in calendar.  You can achieve your requirement by setting the AgendaViewHeight property of calendar. we have prepared a simple sample for the same, please find the sample link form below, 
 
 
Please find the output for the same, 
 
 
Please refer the below Ug link for more details about week view in calendar, 
 
We hope that this helps you, kindly revert us if you have any concern.  
 
Regards, 
Muniappan S. 


Loader.
Up arrow icon