Our powerful JS Calendar component


Post by pmiklashevich »

In Calendar the event is added to the store automatically, then the editor is opened. But on editor cancel it will be removed from the store. So in case of autoSync true this will cause lots of unnecessary requests, but should not populate lots of records in the database. There is a ticket to fix it: https://github.com/bryntum/support/issues/2023

Pavlo Miklashevych
Sr. Frontend Developer


Post by Nagesh@Apoorva.com »

Pavel - Do you have any ETA on the fix?


Post by alex.l »

Hi Nagesh@Apoorva.com,

I am sorry, we cannot give you ETA now, we aim to fix it in one of our nearest releases, but not in the next one.

All the best,
Alex

All the best,
Alex


Post by Nagesh@Apoorva.com »

Alex,
Thank you for the information. But this is very important for our process. So it would be better, if any workaround can be implemented until we have a fix?
If so please provide the example code, we can use it.


Post by Animal »

You could use the beforeSync event on your Calendar's CrudManager and if what you detect in the update packet (I am not sure of the structure of that, you would have to set a breakpoint in your code and examine it) if the temporary record, return false.

https://www.bryntum.com/docs/calendar/#Scheduler/crud/AbstractCrudManager#event-beforeSync


Post by Animal »

Here's what the event looks like, so check if the event in the added block is the one being edited.

Screenshot 2021-02-12 at 09.52.17.png
Screenshot 2021-02-12 at 09.52.17.png (112.61 KiB) Viewed 1054 times

Post by Nagesh@Apoorva.com »

Thank you. We will look into this and let you know.


Post Reply