Our pure JavaScript Scheduler component


Post by nagasain »

It would be nice if there is any config available for ajax request to handle the request synchronously, is there any such config? or any other approach to achieve it?

Post by mats »

Synchronous ajax requests are discouraged as you'll freeze the main thread. Why would you want this?

Post by nagasain »

Yes, but during appointment drag and drop, there are few validations to be done, an API will handle that.
If the request is asynchronous until we get the response from API, the appointment is moved back to the original position and after the response, the appointment is getting moved to the new position.

Post by mats »

No need - our drag drop support async finalization, just need to read our docs a bit. Look at https://www.bryntum.com/docs/scheduler/#Scheduler/feature/EventDrag#event-beforeEventDropFinalize


Post by nagasain »

Yes, Mats, context async is already in use but unfortunately, our validations have multiple return statements from different functions that have to be refactored, because of which is causing the event to jump. So, I was looking out for a synchronous ajax.


Post Reply