Hello!
I think I found a bug, below is a sample code of my implementation. The expectation is that there is no resource grouping in the month view, but when I navigate from the Day Vertical to Month view, the resource grouping appears on the month view.
Something to note is that on Day Views (Day + Day Vertical), the workdays are 0 - 6. Only the Day Vertical view has resource grouping.
https://stackblitz.com/edit/react-hfp5fy-2nglqt?file=index.js
Hi Paul
We have checked on your shared code and suggest you set the workDays property to each view separately to overcome the reported issue.
Modified Sample: https://stackblitz.com/edit/react-hfp5fy-r9smd6?file=index.js
Kindly try the above sample and let us know if you if this has resolved the problem.
Regards,
Ruksar Moosa Sait
Hello Ruskar, please have a look at the sample code again, I made some changes and there are still anomalies.
I added a button to swap between two sets of work days for the Week and Month views, and the state of the workdays for the view does not change
To reproduce, go to week or month, click the button and there is no work day change when there should be.
https://stackblitz.com/edit/react-hfp5fy-sqv4jt?file=index.js
Any news on this?
Hi Paul,
Thanks for the patience.
We have validated your reported issue at our end and confirmed this as a bug and logged the defect report "WorkDays property does not change on a button click" which can be tracked from the following link.
https://www.syncfusion.com/feedback/36436/workdays-property-does-not-change-on-button-click
The fix for this defect will be included in our upcoming patch release which is expected to be rolled out by the first week of August 2022. We would appreciate your valuable patience until then.
Kindly let us know if you need any further assistance.
Regards,
Ravikumar Venkatesan
Hello, has the fix for this issue been released?
Hi Paul,
Sorry for the inconvenience caused.
We are facing complexity in fixing the issue at our end. So, we are unable to provide the fix for the issue on the promised timeline. The fix for the issue will be included in the last week of August 2022 without any delay. We appreciate your patience and we will let you know once the patch is published.
Regards,
Ravikumar Venkatesan
Hi Ravi has this issue been resolved?
Hi Paul,
The fix is rescheduled to our upcoming weekly patch release on September 20, 2022. We appreciate your patience and we will let you know once the patch is published.
Regards,
Vinitha
Hello has this fix been published?
Hi Paul,
Sorry for the inconvenience caused.
We are currently working on this issue with high priority, since we have been facing complexity in the issue we couldn’t deliver it on time. The fix for the issue will be rescheduled to our upcoming Volume 3 release scheduled for the end of September. We appreciate your patience and we will let you know once the patch is published.
Regards,
Ravikumar Venkatesan
Hi Paul,
Thanks for being patience.
We are glad to announce that our Essential Studio 2022 Volume 3 release v20.3.0.47 is rolled out and is available for download under the following link. In this release, The issue with the “dynamic value changes of the workDays property (Array type) in the Scheduler component” has been resolved. As a result, we recommend you upgrade to the latest version of our Syncfusion packages to avail yourself of those changes. We have prepared a sample to change workDays based on view change and button click for your reference.
In your shared sample you have used the actionComplete event to change the workDays on view navigation. The navigating event of the Schedule will be triggered before the actionComplete event is triggered. So, we have used navigating event of the Schedule to change the workDays based on the selected view as shown in the below code snippet and we suggest you use the same.
[index.js]
|
const onNavigating = (args) => { if (args.action === 'view') { setWorkDays(args.currentView === 'Day' ? [0, 1, 2, 3, 4, 5, 6] : [1, 3, 5]); } } |
Release notes: https://ej2.syncfusion.com/react/documentation/release-notes/20.3.47/?type=all#common
Sample: https://stackblitz.com/edit/ej2-react-schedule-work-days-sample?file=index.js
API: https://ej2.syncfusion.com/react/documentation/api/schedule/#navigating
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Ravikumar Venkatesan
Amazing, works great thanks you
Hi Paul,
Thanks for your update. Please get back to us if you need any other assistance.
Regards,
Padmini