Blazor DatePicker not using CurrentUICulture wen running in WebAssembly
I am not able to make the DatePicker use the CurrentUICultuer.
I know I can set the Format property to show the correct format, but since the component don't use the CurrentUICulter and I can manually set the Cultuer how am i supposed to make the DatePicker show the correct Weeknumber?
Instead of specifing a Format it would be much better if I could set the CultuerInfo that should be used.
SIGN IN To post a reply.
7 Replies
BC
Berly Christopher
Syncfusion Team
December 23, 2020 12:54 PM UTC
Hi Thomas,
Greetings from Syncfusion support.
We would like to inform you that, when we render the DatePicker component with culture settings, then the component will be displayed the first day of week based on the default en-US culture. So, we suggest you to modify the first day of week based on the culture with help of FirstDayOfWeek property.
|
<SfDatePicker TValue="DateTime?" Locale="nl-BE" FirstDayOfWeek="1"></SfDatePicker> |
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ServerLocalizationResx1143225562
Regards,
Berly B.C
TH
Thomas
December 23, 2020 12:59 PM UTC
Hi,
Yes, I know you can change the "FirstDayOfTheWeek", but my problem is the WeekNumber that is not correct since it uses the wrong culture. The WeekNumber is calculated different for some cultures and I can't find a way to make sure it is calculated correct.
Still instead of having to set FistDayOfWeek, parmaters for calculating weeknumbe etc it would be much better if the DatePicker component used the CurrentUICultuer directly. But if that is not possible then we need a way to make the WeekNumber to be calculated correctly.
Thomas
BC
Berly Christopher
Syncfusion Team
December 24, 2020 03:03 PM UTC
Hi Thomas,
We would like to inform you that by default DatePicker component will render the first day of week and week number based on en-US culture even though you loading the culture for the component.
Please find the screenshots for the week number & first day of week (for en-US is Sunday) in default culture:
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Week_number-353762958
Can you please share the issue details which you have faced through any screenshot or video demonstration along with culture details that will help us to sort out the issue and provide the further details at our end?
Regards,
Berly B.C
TH
Thomas
December 26, 2020 11:14 PM UTC
What I need is a way to make the DatePicker show the weeknumber correctly, right now it is allways calculating the weeknumer based on the en-US culture, I need it to use the Swedish and Other European cultures.
.
In the attached image you can see the DatePicker from Syncfusion says weeknumber "2" for jan 4-10, but in the "backgroudn" you can see that outlook is correctly displaying weeknumber "1" for jan 4-10 (Swedish culture).
.So how do I configure the DatePicker to calculate the Weeknumber with any other culture than en-US.
The prefered solution would be that it automatically follows the CurrentCulture and that I don't have to set it manually like.
I am running WebAssemly if that makes any differens.
BC
Berly Christopher
Syncfusion Team
December 30, 2020 06:54 AM UTC
Hi Thomas,
We have confirmed the reported issue as a bug at our end. This fix will be included in our patch release scheduled on 13th January 2021. We appreciate your patience until then.
Please track the status of the issue from the below feedback.
Regards,
Berly B.C
TH
Thomas
December 30, 2020 07:01 PM UTC
Great, thanks for the support!
BC
Berly Christopher
Syncfusion Team
December 31, 2020 07:37 AM UTC
Hi Thomas,
We will update you once release has been rolled out from our end.
Regards,
Berly B.C
SIGN IN To post a reply.
- 7 Replies
- 2 Participants
-
TH Thomas
- Dec 19, 2020 03:38 PM UTC
- Dec 31, 2020 07:37 AM UTC