Premium support for our pure JavaScript UI components


Post by damir »

For check if gantt is currently syncing right now we use events to set state isSyncing before sync start and when sync end or fail or canceled.

Like:

beforeSync: (event: any) => {
				setSyncInProgress(true);
			},
			sync: (event: any) => {
				setSyncInProgress(false);
			},
			syncFail: (event: any) => {
				setSyncInProgress(false);
			},
			syncCanceled: (event: any) => {
				setSyncInProgress(false);
			},

However I found gantt.isCrudManagerSyncing which seem to get already the state of syncing, is that correct?

Thanks


Post by ghulam.ghous »

Hi Damir,

Yes it is correct. It is being set when data sync starts and its state is updated when the sync is finished. See here https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#property-isCrudManagerSyncing.

Regards,
Ghous


Post by damir »

Thank you!


Post Reply