Problem with Initial Selection in StiDatePickerElement

Stimulsoft Dashboards.JS discussion
Post Reply
si01
Posts: 3
Joined: Fri Apr 26, 2024 7:19 am

Problem with Initial Selection in StiDatePickerElement

Post by si01 »

Hello,

i could not find anything related to my problem but if there is already a post about it, please let me know.

if i create a dashboard and add a date picker element to the dashboard, set the selection mode to "Range" and set the initial selection to anything related to week like "Next Week", the week always starts with Sunday even though my viewer and the culture in the mrt file is set to "de-DE" where the week starts with monday. Now if i start the report and click in the date picker and select next Week, Monday till Sunday will be selected which is correct.

You can easily reproduce this in your own examples on Github. https://github.com/stimulsoft/Samples-D ... -for-React

For your convenience i added the adjusted "DashboardChristmas.mrt" file.

Many thanks in advance!
Attachments
DashboardChristmas.mrt
(144.98 KiB) Downloaded 30 times
Lech Kulikowski
Posts: 6304
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Initial Selection in StiDatePickerElement

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please provide more detailed information. What version, browser, browser and system localizations?

Thank you.
si01
Posts: 3
Joined: Fri Apr 26, 2024 7:19 am

Re: Problem with Initial Selection in StiDatePickerElement

Post by si01 »

Hello,

- stimulsoft-dashboards-js: latest
- browser version: Edge 124.0.2478.67
- system localization: german
- browser localization: german

Maybe these screenshots hekp in understanding what i mean:
DatePicker_Begin.png
DatePicker_Begin.png (14.49 KiB) Viewed 124 times
DatePicker_in_MRT.png
DatePicker_in_MRT.png (13.46 KiB) Viewed 124 times
DatePicker_click_on_current_week.png
DatePicker_click_on_current_week.png (15.72 KiB) Viewed 124 times
DatePicker_date_after_click_on_current_week.png
DatePicker_date_after_click_on_current_week.png (14.22 KiB) Viewed 124 times
Thanks again :)
Lech Kulikowski
Posts: 6304
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Initial Selection in StiDatePickerElement

Post by Lech Kulikowski »

Hello,

In your report is set the Culture as "en-US". Try to remove or change it.

Thank you.
si01
Posts: 3
Joined: Fri Apr 26, 2024 7:19 am

Re: Problem with Initial Selection in StiDatePickerElement

Post by si01 »

Hello,

yeah i noticed this as well. I changed it to de-DE and it still does not work.
Lech Kulikowski
Posts: 6304
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Initial Selection in StiDatePickerElement

Post by Lech Kulikowski »

Hello,

We need some time to investigate the issue. We will let you know about the result.

Thank you.
#14385
Post Reply