Latest version of scheduler throws error on event resize
Ever since I updated to version 25 when I resize events on my scheduler I get:
System.ArgumentException: The call to 'OnResizeStop' expects '4' parameters, but received '3'.
Any thoughts why this is happening all of a sudden?
Hi Sean Makins,
We checked and prepared the Scheduler sample for the latest version (25.XX.XX), but we were unable to reproduce the issue you mentioned regarding resize events on my scheduler. We suspect that your downloaded NuGet version may be mismatched with the script version and style version referenced in Layout.cshtml, you can use them as shown in the below code snippet.
[Layout.cshtml]
|
<head> <link rel='nofollow' href=https://cdn.syncfusion.com/blazor/25.1.35/styles/bootstrap5.css rel="stylesheet" /> <script src=https://cdn.syncfusion.com/blazor/25.1.35/syncfusion-blazor.min.js type="text/javascript"></script> </head> |
Refer to the shared sample and get back to us if you need any further assistance.
Regards,
Vijay
Attachment: Blazor_sample_with_resize_checking_c095db1.zip
Thanks for the response Vijay, bringing in the .js file via CDN still produces the same result.
I wonder if there was any breaking changes since version 20.x.x? That is where it was working, and if I roll back it works again.
this is my event section:
<ScheduleEvents
TValue="AppointmentView"
Resized="AppointmentResized"
OnEventDoubleClick="OnEventDoubleClick"
OnEventClick="OnEventClick"
OnCellClick="OnCellClick"
ActionCompleted="AppointmentViewChanged"
OnCellDoubleClick="OnCellDoubleClick">
</ScheduleEvents>
and my TValue for the SfSchedule is the same
<SfSchedule TValue="AppointmentView"
AppointmentView is identical to the data model in the examples.
Hi Sean Makins,
We checked your reported issue based on your shared script error and found the
reported issue will happen when using NuGet from and above version 21.1.39
and the script version referred to in the project is below version 21.1.39(Ex:
21.1.38). In version 21.1.39 we provided support to get the groupIndex
of appointment in the ResizeEventArgs. For this, we made the changes in
both script and server end. So, if the script version below 21.1.39(Ex:
21.1.38) is used in the project when using the NuGet version from and above 21.1.39
it will give this error. To resolve this error you must use the same version of
NuGet and script in the project. So, we suggest you remove the old version of
the script used in your project and refer to the script from the installed
NuGet as highlighted in the code snippet below.
UG(Adding script): https://blazor.syncfusion.com/documentation/getting-started/blazor-webassembly-visual-studio#add-stylesheet-and-script-resources
Note: We attached the working sample and a video shows the issue and how
it will be resolved when using the same version of the script and NuGet.
[index.html]
|
<!DOCTYPE html> <html lang="en">
<head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>syncfusion-blazor-web-assembly-app</title> <base rel='nofollow' href="/" /> <link rel='nofollow' href="css/bootstrap/bootstrap.min.css" rel="stylesheet" /> <link rel='nofollow' href="css/app.css" rel="stylesheet" /> <link rel='nofollow' href="syncfusion-blazor-web-assembly-app.styles.css" rel="stylesheet" /> <link rel='nofollow' href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" /> <script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script> </head>
<body> <div id="app">Loading...</div>
<div id="blazor-error-ui"> An unhandled error has occurred. <a rel='nofollow' href="" class="reload">Reload</a> <a class="dismiss">🗙</a> </div> <script src="_framework/blazor.webassembly.js"></script> </body>
</html> |
Regards,
Ravikumar Venkatesan
Attachment: blazor_scheduler_sample_and_video_2856301.zip
Thanks for the reply, yeah I tried all that, tried pulling the exact version through CDN, Currently pulling the _content version (cleared all cache to make sure it wasn't caching that old JS file). no luck.. still throwing that error every time on resize.
all I added was the highlighted field below and it started working
Hi Sean Makins,
We checked and tried to replicate the issue that you mentioned on our end with your shared code snippet, such as using resource grouping. However, we were unable to replicate the issue as you mentioned. Therefore, we kindly request that you provide the following details, as this information will greatly assist us in understanding and resolving the issue effectively.
- Share us the exact full schedule related code snippet used.
- If possible, Share the simple issue replicating sample or
- Replicate the issue in our shared sample.
Please get back to us with the required details for further assistance.
Regards,
Vijay
Attachment: blazor_scheduler_wasm_sample_7dfca6f1.zip
- 5 Replies
- 3 Participants
-
SM Sean Makins
- Apr 17, 2024 03:03 PM UTC
- Apr 24, 2024 08:25 AM UTC