Premium support for our pure JavaScript UI components


Post by Jorge »

Hi!

It seems that the update of the existing records in the ResourceTimeRangStore are not tracked by the StateTrackingManager on the project. Only the new records are tracked.

Here. A use case:
https://codepen.io/Zoteb/pen/zYZEEOm

I need to use this feature. Could you please tell me how achieved this.

Thak you for the answer!


Post by saki »

It seems it is a bug; the ticket is here: https://github.com/bryntum/support/issues/2971


Post by arcady »

Existing records are not marked as tracked by STM when adding a store that's the bug root cause.
As a temporary workaround you need to do it manually:

schedulerPro.project.stm.addStore(
    schedulerPro.project.resourceTimeRangeStore
);
schedulerPro.project.resourceTimeRangeStore.forEach(r => r.stm = schedulerPro.project.stm);

Post Reply