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

Hide button from remove confirmation popup

9 Answers 222 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 19 Aug 2015, 06:08 PM

Hello all

 

I hope you are well.

I am using the scheduler and when someone wants to delete a recurring event, I'd like the popup confirmation to popup.

However, I don't want the button that says "Delete current event"

I just want it to say "yes", "no"

Any ideas how I can do this?

 

Thanks in advance

Daniel

9 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 20 Aug 2015, 03:59 PM
Hello, Daniel.

You can by customizing the text in the buttons by setting tweaking the messages object:
- cancel sets the "no / cancel" text
- destroy sets the "delete / destroy" text
- deleteWindowTitle sets the text

In addition editable.confirmation sets the text in the window. if you leave it blank, it won't show  any text. If you set it to false, no confirmation will be shown.

I've prepared a sample -- http://dojo.telerik.com/@joneff/OgIyO.

Regards,
Ivan Zhekov
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 20 Aug 2015, 04:53 PM

Hi Ivan

Thanks for your answer and your time.

It is appreciated.

I however, should have been more specific.

All the events in my schedule are reoccurring events, so the box that pops up says something like:

"Delete single event"

"Delete series of events"

I don't want the "delete single event" option to appear in the box.

I want that box to only have a yes and no option.

I'm sorry for not being clearer from the beginning.

How can I do this?
0
Ivan Zhekov
Telerik team
answered on 24 Aug 2015, 08:36 AM
Hello, Daniel.

When you are deleting an appointment in a series, you always need to specify which action you want to perform: delete an appointment, or delete the entire series.

Or in other words, that particular request, to have only yes / no buttons, is not possible to achieve.

Regards,
Ivan Zhekov
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 24 Aug 2015, 11:20 AM

Hi Ivan

 Thanks for that answer.

Okay, so how can I do this:

When the user presses either "Delete Single Occurrence" or "Delete Entire Series", how do I find out what button was pressed?

Example

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
},​

What do I have to put into that if?

0
Daniel
Top achievements
Rank 1
answered on 24 Aug 2015, 11:29 AM

Please note: I've asked the same question in another post

http://www.telerik.com/forums/destroy-confirmation-popup-find-out-which-button-was-pressed

They have become entangled :)​

0
Ivan Zhekov
Telerik team
answered on 26 Aug 2015, 08:23 AM
Hello, Daniel.

I've update my example (http://dojo.telerik.com/@joneff/OgIyO/3) to include a small improvement: editRecurringMode (more info can be found in the docs http://docs.telerik.com/KENDO-UI/api/javascript/ui/scheduler#configuration-editable.editRecurringMode)

What the property does is to specify how you edit / delete recurring appointments: either by choosing, or always series, or always dialog.

But do have in mind that if you set this option to "occurrence" you (and the rest of the users) will always interact with the specific occurrence.

Regards,
Ivan Zhekov
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 26 Aug 2015, 10:08 AM

Hi Ivan

 Thanks for going the extra mile and posting this.

I saw this option a while ago, but seems to do nothing on my side.

I have set it to 'dialog', 'occurrence' and 'series', but nothing different happens.

I looked at your code, and I'm a little jealous, as I'd really like to have my code function that way.

I even copied your code to my machine, and it didn't work.

This leads me to believe that my version of the kendo ui scripts are out of date.

I'll update them and update you later.

Thank you for your help :-)

0
Ivan Zhekov
Telerik team
answered on 28 Aug 2015, 06:04 AM
Daniel,

The quickest way to know if you are using the same version is to look at the files that are being loaded: in the example I sent you, am loading 2015.2.805.

Regards,
Ivan Zhekov
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 28 Aug 2015, 07:33 AM

Hi Ivan

 

Sorry, I completely forgot to reply to this post.

The version that I was using, is out of date.

I downloaded the new version, and what you suggested above worked :)

Good times.

Will be working on some list functionality later this weekend.

Wish me luck.

Have an awesome Friday!

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