hi,
I have a combobox in the toolbar
which is configured in app.config.ts like this:
...
tbar: {
items: {
cboGroups: {
type: 'combo',
// ToDo: set to last selected value
value: 0,
items: JSON.parse(localStorage.getItem('groups')),
valueField: 'id',
displayField: 'name',
listeners: {
change: (event) => {
const scheduler = event.source.parent.parent;
// ToDo: how to trigger CrudManager.load (to pass event.value)
}
},
},
...
},
...
}
how can I trigger CrudManager.load() and pass event.value as query string param (so the data in the scheduler is refreshed)?
note: in app.component.ts I have CrudManager configured like this:
// source: https://bryntum.com/products/scheduler/docs/api/Scheduler/data/CrudManager#ajax-request-configuration
const crudManager = new CrudManager({
autoLoad: true,
autoSync: true,
resourceStore,
eventStore,
assignmentStore,
transport: {
load: {
url: '.../CmLoadOrders',
},
sync: {
url: '.../CmSyncOrders',
}
}
});
thanks, udo