Scheduler: Stop edit dialog from appearing when date of event is in the past

1 Answer 109 Views
Scheduler
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Bernd asked on 26 Jul 2022, 10:17 AM

Hi.

How can I prevent the edit dialog from appearing, if the event the user clicks on is in the past? I made an example:

https://stackblitz.com/edit/react-j2mfjp?file=app%2Fmain.tsx

If you click on one of the events, the alert appears but when I close the alert, the edit dialog appears too. I tried multiple things but couldn't manage it.

Thanks for any help,

Greetings,

Bernd

1 Answer, 1 is accepted

Sort by
0
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
answered on 26 Jul 2022, 10:30 AM
Please ignore this. I solved it by setting the editable property of the SchedulerEditItem to false if the date is in the past.
Tags
Scheduler
Asked by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Bernd
Top achievements
Rank 5
Bronze
Bronze
Bronze
Share this question
or