Hi all,
i have an issue about the getViewDate used in the changeDate event,
I need to execute an ajax call when the view of the scheduler is changed (to make a search , to do that try to use the event changeDate.
So i wrote t,
with the following method:
changeDate(_event: CustomEvent): void {
const viewDates = this.scheduler.getViewDates();
viewDates.then((value: Date[]) => {
calltoserver(value)
})
}
the getViewDates return not the new DateRange but the old one,
so for now to fix it i need add a setTimout with 200ms of delay to give the trime to the page to update it,
but that’s a empirical solution.
Do you have any suggestion on how can I resolve this issue?
Regards
Andrea