WorkWeek - FirstDayOfWeek showing based on locale

Hi Team,

I want to Show WorkWeek - FirstDayOfWeek based o locale in SfSchedule control

For Ex: 

US    Mon - Fri

Saudi Arabia   Sun - Thu

Is it possible to achieve it by setting some property.


Regards,

Thejesh.



1 Reply

MS Muniappan Subramanian Syncfusion Team July 5, 2021 10:01 AM UTC

Hi Thejesh,  
 
Thank you for contacting Syncfusion support.  
 
We checked your requirement “WorkWeek - First day of week working based on locale”. You can achieve your requirement by adding Non-Working days of a week by using NonWorkingsDays property of WorkWeekViewSettings in SfSchedule.We’ve prepared the sample for the same. Please find the link below for the sample,  
 
Code Snippet: 
this.schedule.Locale = "ar"; 
var nonWorkingDays = new ObservableCollection<DayOfWeek>(); 
nonWorkingDays.Add(DayOfWeek.Friday); 
nonWorkingDays.Add(DayOfWeek.Saturday); 
var workWeekViewSettings = new WorkWeekViewSettings(); 
workWeekViewSettings.NonWorkingsDays = nonWorkingDays; 
schedule.WorkWeekViewSettings = workWeekViewSettings; 
 
 
Please refer below UG links to know more details about changing NonWorking days in Schedule, 
 
We hope that this helps you, kindly revert us if you have any concern.  
 
Regards, 
Muniappan S. 


Loader.
Up arrow icon