Our powerful JS Calendar component


Post by braincept »

We already have bryntum calendar. Now I am trying to added Week Resource view. And I am done with it. But facing resourceFilter issue.

We use custom resourceFilter to select/deselect users for calendar.

After deselecting user from resourceFilter, resourceFilter works perfectly. However, the resource list in the UI does not change.
same with select resourceFilter.

After refreshing, some of the correct UI appears.

How can we get rid of this problem?

Attachments
Calenso Dashboard.mp4
(1.19 MiB) Downloaded 51 times

Post by marcio »

Hey braincept,

Are you able to reproduce that behavior in one of our demos? Would be possible to share a sample project with your custom resourceFilter configuration for us to check??

Best regards,
Márcio


Post by braincept »

I am dynamically updating resourceFilter in code. Is there any way to just refresh resource View UI so that latest resourceFilter code can reflect!


Post by Animal »

Custom resource filter? That looks very like the normal resource filter. Is there a reason why you don't just use the normal resource filter?


Post by braincept »

This is how I implemented my filter.

this.sidebar.items.resourceFilter = {
  type: 'calensoresourcefilter',
  weight: 300,
  selected: {
    values: [1010, 1111, 1115, 1116]
  },
  multiSelect: true,
  trigger: (triggerName: string, param: { record: any, item: any, event: any }) => {

  }
}

Post by alex.l »

Thanks, this code looks ok. But we still cannot use it and test, unfortunately.
Could you please apply minimal changes to one of our demos to reproduce this problem, and share the code of calensoresourcefilter component.

All the best,
Alex


Post by Animal »

Also, what version are you using? Your sidebar date picker looks like this:

Screenshot 2023-03-29 at 11.12.45.png
Screenshot 2023-03-29 at 11.12.45.png (53.83 KiB) Viewed 755 times

In 5.3, it looks like this:

Screenshot 2023-03-29 at 11.13.03.png
Screenshot 2023-03-29 at 11.13.03.png (21.26 KiB) Viewed 755 times

There are "Previous year" and :Next year" buttons.


Post by braincept »

We are using this version

"@bryntum/calendar": "5.3.1",
"@bryntum/calendar-angular": "5.3.1",
"@bryntum/demo-resources": "^1.2.0",

We hide those buttons with custom CSS.

My question is that, Is there any way to just refresh resource View UI so that latest resourceFilter code can reflect?


Post by Animal »

I don't understand that. The views all refresh in response to data change.

I cannot help without information, context and code.


Post by Animal »

Widgets are reconfigurable all the way down:

Screenshot 2023-03-29 at 12.42.23.png
Screenshot 2023-03-29 at 12.42.23.png (200.77 KiB) Viewed 750 times

Post Reply