Iso week instead of week number

Hi,

I'm using month view with the property showweeknumber and i would like to show the iso week number instead of the normal week.


3 Replies

MS Muniappan Subramanian Syncfusion Team July 15, 2021 01:53 PM UTC

Hi Petros, 
 
Thank you for using Syncfusion products. 
 
We have checked your requirement “Iso week instead of week number in SfScheduler”. You can achieve your requirement by customizing the month cell using “MonthcellTemplate” property from MonthViewSettings of scheduler and by using the “FirstDayofWeek” property you can customize the first day of week in the SfSchedule. we have prepared a simple sample for the same, please find the sample link form below, 
 
Code snippet: 
<syncfusion:SfScheduler x:Name="Schedule" 
                    ItemsSource="{Binding Appointments}" 
                    FirstDayOfWeek="Monday" 
                    ViewType="Month"> 
    <syncfusion:SfScheduler.MonthViewSettings> 
        <syncfusion:MonthViewSettings ShowWeekNumber="True"> 
            <syncfusion:MonthViewSettings.MonthCellTemplate> 
                <DataTemplate> 
                    <Border Background="White"> 
                        <TextBlock HorizontalAlignment="Center" Foreground="Black" Text="{Binding DateTime.DayOfYear}"/> 
                    </Border> 
                </DataTemplate> 
            </syncfusion:MonthViewSettings.MonthCellTemplate> 
        </syncfusion:MonthViewSettings> 
    </syncfusion:SfScheduler.MonthViewSettings> 
</syncfusion:SfScheduler> 
 
 
Please find the output for the same, 
 
 
Please check the sample, if it doesn’t meet your requirement Can you please explain your use case in detail? So that we could analyze your query better and provide you better solution at the earliest. 
 
We hope that this helps you, kindly revert us if you have any concern.  
 
Regards, 
Muniappan S 



PE Petros July 15, 2021 02:22 PM UTC

Hi,

Unfortunately no.

What i would like to do is show the week number based on the IsoWeek rule https://en.wikipedia.org/wiki/ISO_week_date .


So this is an example of what we would like to have. 




 



SS SaiGanesh Sakthivel Syncfusion Team July 16, 2021 01:24 PM UTC

Hi Petros, 
 
Thank you for the update. 
 
#Regarding ISO standard week number support for Scheduler 
We have checked the reported query from your end. we would like to inform you that we have already provide the ISO standard week number support for SfScheduler which is available on the volume 2 2021 Main Release v19.2.0.44 onwards. We suggest to upgrade the version to the latest version. We have attached the tested sample link for your reference. 
 
 
Please refer to the release note of volume 2 2021 main release in the following link for your reference. 
 
 
We hope this helps. 
 
Regards,
SaiGanesh Sakthivel
 


Loader.
Up arrow icon