Unplanned
Last Updated: 19 Apr 2023 06:55 by ADMIN
Stoyan
Created on: 12 Apr 2023 12:47
Category: Scheduler
Type: Bug Report
5
Scheduler groups data incorrectly when there is only one available resource item

In the following example:

https://stackblitz.com/edit/react-l3bszd?file=app%2Fmain.tsx

We have 2 events associated with 2 different resource items (in this case people - Peter and Alex). If we have only 1 resource item defined (e.g. Peter) we also see Alex's event in Peter's calendar group (column) which is incorrect.

However, as long as we have more than 1 resource item provided, grouping is done correctly (commented lines 21-23):

  1. If we provide Peter, Alex and John - we will correctly see both events in their respective groups (columns)
  2. If we provide only Peter and John we will correctly see only Peter's event in his column. Alex's event will no longer be shown as there is no such group
  3. If we provide only John and at least 1 more similar resource item that doesn't have any events associated with it - the calendar will be empty, which is again correct.
  4. However, if we provide only John resource item, we will INCORRECTLY see both Peter and Alex's events under his group (column).

My suspicion is that grouping was never tested with only 1 resource item, as it doesn't make much sense to group in that case. However, those groups also act as filters for events that do not have associated resource. We let our users to dynamically multi-select from a list of all available resource items so that they will see their events grouped only for the specified resource items. And if they select only 1 resource item from that list, they will see all events (for other resource items as well) incorrectly.

1 comment
ADMIN
Filip
Posted on: 19 Apr 2023 06:55

Hello, Stoyan,

Thank you for reporting this behavior.

I have logged it as an issue in our repo where it can be tracked and monitored here:

https://github.com/telerik/kendo-react/issues/1544

Once it has been fixed or a workaround has been found, the GitHub item will be updated accordingly.

As a small token of appreciation, I have granted you some Telerik points.

Regards,
Filip
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.