Our pure JavaScript Scheduler component


Post by til.schniese »

Hi there,

we found something that was at least unexpected to us, and wanted to clarify if expected behavior or a bug.

When filtering the resources in SchedulerPro, and afterward using eventStore.records, we would have expected that eventStore.records does not include the events that are assigned to the non-visible resources, but apparently it does.

Add following code to the basic online demo: https://bryntum.com/products/schedulerpro/examples-scheduler/basic/

setTimeout(()=> {
scheduler.resourceStore.filter({
filters: (r) => r.id == 'r1'
 
});
setTimeout(()=> {
console.log(scheduler.eventStore.records);
}, 1000)
})

When executed, only one event should be part of the console log, but it includes all 8 events.
The documentation says: "Returns all "visible" records" for the records field, thus, we would expect only the one event in the first resource to be returned.


Post by Animal »

Filtering a store filters only that store.

If you wish to only see a subset of events, filter the event store.


Post Reply