Hiding extra weeks in SfScheduler?

Was wondering if anyone knows if its possible to hide the extra week in month view on the scheduler?

So if there's any way to hide the week at the end that shows the first week of the next month.

1 Reply

DY Deivaselvan Y Syncfusion Team August 30, 2018 05:35 PM UTC

Hi Peter,

Thank you for contacting Syncfusion support.

 
We have checked with your query. Currently, schedule doesn’t support to hide the row which displays week in Month view. But, you can hide the next and previous month dates by customize the text color of date text in month cell using TextColor property of CellStyle inOnMonthCellLoadedEvent. Kindly refer the code snippet below.  
  
Code snippet:  
        schedule.OnMonthCellLoadedEvent += Schedule_OnMonthCellLoadedEvent;  
        …  
  
        private void Schedule_OnMonthCellLoadedEvent(object sender, MonthCellLoadedEventArgs e)  
        {  
            if (e.isNextMonthDate || e.isPreviousMonthDate)  
            {  
                e.cellStyle = new CellStyle()  
                {  
                    TextColor = Color.White,  
                    BackgroundColor = Color.White,  
                };  
            }  
        }  
  
You can also refer our online User Guide Documentation by using the below link.  
  
Regards,  
Deivaselvan 


Loader.
Up arrow icon