Hi bryntum team.
I am using calendar version 4.3.3. In resourceview mode, there is an exception. add data to resourcefilter through “this.calendar.widgetMap.resourceFilter.selected.add(this.resourceGroup)” . When i select some items in resourcefilter , the selected items are not displayed in the calendar component on the right.
Support Forum
- Attachments
-
- 屏幕截图 2022-03-24 175508.png (71.32 KiB) Viewed 673 times
Hi Animal ,
I'm sure that resources already exists in resourceStore before I execute the method “this.calendar.widgetMap.resourceFilter.selected.add(this.resourceGroup)” .In fact, this.resourceGroup Is a variable .
The first time it was used as resourceStore.data, it was ok. However, assign it a new value.the problem I stated above happened.When I uncheck any one item of the resourcefilter,and then I selected it again .the resources displayed.
As shown the picture, i toggle selected the "Du,Zhuo" ,and the resources show in calendar.
- Attachments
-
- 屏幕截图 2022-03-24 175543.png (76.68 KiB) Viewed 666 times
I don't really understand what you are doing at all.
If you use it as data, then it won't be records. It will be data.
You have to select records. You have to add a record that exists in the resourceStore to the selected Collection.
That will work.
You must be doing something different. If it throws an error, set the debugger to break on errors, then take a look around when it stops.
I think we need a simpler way of selecting in the List
class. Here's a ticket: https://github.com/bryntum/support/issues/4404