This is a migrated thread and some comments may be shown as answers.

Destroy confirmation popup: find out which button was pressed

3 Answers 70 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 21 Aug 2015, 12:04 PM

Hello

 

I am using the scheduler with a events that reoccur.

The user has the ability to delete an event, and the confirmation box pops up with two options:

1)  Delete single occurrence

2)  Delete entire series

I then have a remove function, and in that function, I'd like to find out which of the buttons was pressed, so that I can run code for each instance.

remove: function(e) {

    if(delete single) // this is the if that I need help with

        do something

    else if(delete entire series)

        do something else
},

How do I find out which button was pressed?

3 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 24 Aug 2015, 11:30 AM
Please note: I've asked the same question in another post

http://www.telerik.com/forums/hide-button-from-remove-confirmation-popup

They have become entangled :)​
0
Georgi Krustev
Telerik team
answered on 25 Aug 2015, 12:12 PM
Hello Daniel,

I would suggest you use the isRecurrenceHead method that will tell you whether the deleted item is recurrence head or not. Here is a demo that shows demonstrates a possible implementation:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Daniel
Top achievements
Rank 1
answered on 25 Aug 2015, 03:05 PM

Whoooooo.

Thanks you Georgi!

That is exactly what I was looking for.

You are a legend.

Enjoy your day / evening :)

Tags
Scheduler
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or