Scheduler produces an format error
Hi,
i tried the sample from the scheduler in my application. But when i start the scheduler, the component hangs and the console present the following errors:
Uncaught Format options or type given must be invalid
Error: Format options or type given must be invalid
at b (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:14648)
at Function.t.dateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:29409)
at t.getDateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:45059)
at t.formatDate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:45701)
at t.titleUpdate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:30343)
at t.renderDays (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:16144)
at t.renderDays (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:49275)
at t.renderMonths (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:15772)
at t.renderMonths (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:49184)
at t.createContentBody (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:8507)
Error: Format options or type given must be invalid
at b (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:14648)
at Function.t.dateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:29409)
at t.getDateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:45059)
at t.formatDate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:45701)
at t.titleUpdate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:30343)
at t.renderDays (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:16144)
at t.renderDays (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:49275)
at t.renderMonths (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:15772)
at t.renderMonths (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:49184)
at t.createContentBody (https://localhost:5001/_content/Syncfusion.Blazor/scripts/calendars-151e2f.min.js:1:8507)
What causes this error?
Best regards
Sascha
SIGN IN To post a reply.
3 Replies
AK
Alagumeena Kalaiselvan
Syncfusion Team
May 26, 2020 01:02 PM UTC
Hi Sascha,
Greetings from Syncfusion support.
We have checked your reported error “Format options or type given must be invalid” with shared sample but unfortunately we could not replicate this issue at our end. We have prepared a sample for your reference which can be downloaded from the below link.
Kindly share the below details which may helpful to proceed further.
- Share the sample code for scheduler (if possible)
- Reproduce the issue with shared sample
Regards
Alagumeena.K
ST
Sascha Tobler
May 26, 2020 01:23 PM UTC
Hello Alagumeena,
Attachment: Bildschirmfoto_20200526_um_15.15.58.png_4170b0cf.zip
i took your sample and even with this sample, it does not work.
I'm using a Mac with Visual Studio Code and the Mac is running in german language. Browser is chrome
Best Sascha
Attachment: Bildschirmfoto_20200526_um_15.15.58.png_4170b0cf.zip
NR
Nevitha Ravi
Syncfusion Team
May 29, 2020 12:56 PM UTC
Hi Sascha,
Thanks for sharing the details.
We have checked the reported issue in Mac device and could reproduce the issue in the version 18.1.53 which has been resolved in latest Nuget version 18.1.54. While upgrading we are facing locale issue in our scheduler which could be resolved by setting specific culture to the Locale property for the Scheduler.
|
<SfSchedule TValue="AppointmentData" Locale=”en-US” Height="550px" SelectedDate="@(new DateTime(2020, 1, 31))">
..
</SfSchedule> |
Kindly upgrade the version and let us know if you still face any problem.
Regards,
Nevitha
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
ST Sascha Tobler
- May 25, 2020 09:23 AM UTC
- May 29, 2020 12:56 PM UTC