search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Deleting event

Asked by Alex
8 years ago.

Hello All,

I'm using context menu to delete an event

{text:"Delete", onclick: function() { var e = this.source;; } }

After deleting I supposed to handle onEventDelete and/or onEventDeleted to do some after actions.

But nothing happens. Event was deleted but no onEventDelete and/or onEventDeleted events.

Does it mean that I need to do some after actions after For example, calling $.ajax method.

Thank you in advance.

Answer posted by Dan Letecky [DayPilot]
8 years ago.

Yes, there is no built-in onEventDelete event.

You can call and then notify the server:;
  $.post("delete", { e: }, function() {

Or you can call the server first and delete it on success:

  $.post("delete", { e: }, function() {;

Comment posted by Alex
8 years ago.

Thank you much.

Does it mean that onEventDelete and/or onEventDeleted events not implemented yet for JavaScript? Or could you explain when this events invoke and how to handle them?

Comment posted by Dan Letecky [DayPilot]
8 years ago.

There are onEventDelete and onEventDeleted events in the calendar:

However, they are only fired when the user clicks the built-in delete icon in the CssOnly=false mode.

These events are not fired when you delete an event using You don't need the event in this case because you have to invoke it manually so you can do the custom actions at the same time.

Similarly, no additional event is fired when you update events directly using

Comment posted by Alex
8 years ago.

Thank you

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.