Slot resources doesn't updated when resources changed

0 Answers 74 Views
Scheduler
Damian
Top achievements
Rank 1
Iron
Damian asked on 13 Oct 2023, 07:03 AM | edited on 13 Oct 2023, 08:28 AM

Hello Kendo community,

I hope you're all doing well. I've been working with the Kendo Angular Scheduler, and I've run into an issue related to the "resources" field not updating correctly in the scheduler slots.

The problem I'm encountering is that even though I'm filtering and changing the "resources" dynamically, the corresponding slots in the scheduler are not updating as expected. This means that the slots are not reflecting the current state of the resources, and there seems to be a synchronization problem.

Here's a simplified representation of the issue:

- I have resources that can be filtered and changed dynamically.
- When I apply filters or make changes to the resources, the scheduler slots should update to display the filtered or changed resources, but this is not happening as expected.

Bellow screenshots with repro

1. That it's my initial state, I have one user in resources, and as you can see in the console propper user was selected

2. When I changed filtering for resources, list of resources was updated and then now I have more users. But if I select different user, slots assigned to them still hold value for previous state

I've reviewed the documentation and tried different approaches, but I haven't been able to resolve this issue. Has anyone else encountered a similar problem, and if so, could you please share your insights or solutions? Any assistance would be greatly appreciated.

If you need more specific details or code samples, please let me know, and I'll be happy to provide them.

Thank you in advance for your help and support!

Best regards,

Damian

Yanmario
Telerik team
commented on 17 Oct 2023, 02:27 PM

Hi Damian,

This might be related to Angular's Change detection and I would recommend updating the reference to the resource collection by using the spread operator or mutating the array in another way.

If that doesn't help, could you create a sample project(feel free to fork and use the following example) with the experienced behavior, steps, and what is the desired end result from the user interaction. That will help me troubleshoot the Scheduler configuration and provide further suggestions on this matter. Thank you in advance for your cooperation.

Regards,
Yanmario
Progress Telerik

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Damian
Top achievements
Rank 1
Iron
Share this question
or