I tried to follow this post here to filter the resource available in the combo of the resource grid but in this event, the combo store is undefined so I can't set a filter on it:
new Gantt({
listeners : {
beforeTaskEditShow({ taskEdit, editor }) {
let resourceCombo = editor.widgetMap.resourcestab.resourceCombo;
console.debug(resourceCombo.store); // THIS IS UNDEFINED
}
},
...
What I need is to have the combo present a prefiltered list of resources, that is resources that can be manually assigned. This is a custom condition which could look somethong like this:
We're still working on it, you can try listening for the 'show' event of the TaskEditor and query for the Combo instance to manipulate it. We hope to offer a clean way of doing this soon.
Wow I just found out that the problem is caused by an onchange handler on an extra widget, where I call tab.requestPropagation(). Here's a simplified version: