rwilson504 / PCFControls

Reusable PowerApps Control Framework (PCF) controls.
MIT License
126 stars 127 forks source link

[BUG] [Calendar] Limit on the number of items calendar can handle? #321

Open Craig-Humphrey opened 1 year ago

Craig-Humphrey commented 1 year ago

Which PCF Component Calendar

What type of Power App are you using this PCF component in?

Describe the bug There seems to be a limit on how many items the calendar can handle. I'm currently working in the day view and see two symptoms:

  1. I used FirstN to slowly increment how many items in the underlying collection. Once I get over 54 items, but only the first 54 are displaying.
  2. If my first attempt to populate the collection is with more than this, then the calendar remains blank.

To Reproduce Steps to reproduce the behavior:

  1. Add calendar control to screen, wire up properties
  2. Save, Close and re-open app
  3. Populate collection (that is linked to the calendar items) with more than 54 items

Expected behavior I know this is a lot of items, particularly for a single day, but that's a different conversation with the client. I'd like it to display all the items. It doesn't need to be unlimited, but probably needs to be nearer 100 for a single day/single resource and then 1000s for multiple resources.

Screenshots N/A

Additional context While this is possibly a bit of a bug, I'm also going to have to have the conversation with the client around the practicality of having so many items in a calendar, as the readability goes out the window... And it's only going to get worse on a multi-resource view.

Craig-Humphrey commented 1 year ago

OK, perhaps this isn't the specific bug.

I was managing to reproduce this time and time again, but now it's working...

Perhaps it's related to a different issue/bug I'm experiencing.

I have two icons that interact with the collection that is behind the calendar.

  1. Resets the collection back to the source data.
  2. Adds "white space" entries - the gaps between calendar items - into the collection.

However, I'm finding that I have to click the second icon twice, before it has an impact on the calendar, even though I know it's updating the collection involved.

Any ideas?

Craig-Humphrey commented 1 year ago

And possibly related - the calendar only updates when there are click/select events from the mouse. The calendar doesn't refresh if I update the collection in a Screen.OnVisible or Select(Control). Even when I update the collection before a navigation - it doesn't pick up the changed collection.

I feel like I'm missing something intrinsic here....