Resource changes are not reflecting on UI. We are not able to uncheck or check the resources in the TS file. Is there any way to filter the selection of resources in TS file on the basis of certain conditions?
This issue we are facing after the loading of the calendar. The default selection of resources is working when we are initializing the resourceFilter but once the resourceFilter is initialized then we are not able to change the selection in TS file.
Thanks
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Mon Jan 18, 2021 6:11 pm
by pmiklashevich
This is not supported out of the box. Ticket here: https://github.com/bryntum/support/issues/2006
Please checkout the ticket for a workaround, but please make a note to remove it as soon as the ticket is fixed, since the workaround requires to override a private function. Cheers!
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Fri Jan 22, 2021 10:00 am
by braincept
@pmiklashevich When are you planing to release this fix? It says in 4.0.8. When is this planed? We are pretty much blocked with our development right now if we cannot modify the resource filter.
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Fri Jan 22, 2021 10:57 am
by pmiklashevich
We have moved it to 4.1.0. We're going to have one more "patch" release containing just small bug fixes and then release a big "minor" release. There is a workaround to this issue which you can find in the description. Have you tried to apply it? Does it work for you? If it does, please use it meanwhile. Please subscribe to the ticket to get notified when it's done. Thanks!
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Mon Jan 25, 2021 6:34 am
by braincept
Hi Pavel,
1) I think typings are not available. We are getting compiler errors.
2)
We are not able to use this line of code because we are getting compiler errors. Error is
Property 'onSelectionChange' does not exist on type 'ResourceFilter'
Resource filter we are importing from here
import {ResourceFilter} from "bryntum-calendar/calendar.lite.umd.js";
Thanks
Braincept
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Mon Jan 25, 2021 10:17 am
by pmiklashevich
Hello Braincept,
onSelectionChange is private. Only public properties/methods are described in the typings (Calendar/build/calendar.lite.umd.d.ts). Please mute the typescript error and add a notice to remove the override as soon as the ticket is fixed.
Best,
Pavel
Re: [ANGULAR] Reinitialize the selected values in Resource Filter
Posted: Mon Feb 08, 2021 7:22 pm
by braincept
Thanks that worked, feel free to close this ticket