Scheduler: How to remove event from DB after confirmation dialog pop up

1 Answer 69 Views
Scheduler
Anton
Top achievements
Rank 1
Iron
Anton asked on 20 Oct 2023, 08:30 PM

Hi ,

I need to remove an event when the user removes it by clicking on the X link which appears when he hovers over it. Currently what happens is this:

- the removeEvent is triggered right away

- then the confirmation dialog appears

But I need to add my code only after the Yes button is clicked on that dialog. Is there an event for that?

I also tried to use my own dialog, so I prevent the default behavior of the remove event, but in this case the widget does not remove the event. So I would like to know how to do it programmatically. Thanks.

Regards,

Anton

Anton
Top achievements
Rank 1
Iron
commented on 20 Oct 2023, 08:31 PM

I forgot to mention that this is for Angular

1 Answer, 1 is accepted

Sort by
0
Anton
Top achievements
Rank 1
Iron
answered on 20 Oct 2023, 08:42 PM

I've resolved it, if anyone has this problem. I've used option #2 and this code to make Angular detect changes

          this.events = this.events.concat([]);

 

where events is a list of evets I'm feeding to the scheduler control.

Tags
Scheduler
Asked by
Anton
Top achievements
Rank 1
Iron
Answers by
Anton
Top achievements
Rank 1
Iron
Share this question
or