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

Angular-Scheduler : remove event preventDefault

1 Answer 320 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 25 Jun 2014, 05:14 AM
I want to display my own confirmation window so I handled remove eve t in options

{
  ...
  remove: function(e) {
     e.preventDefault();
    // more my code here
  }
}


However, this is ignored and, even preventDefault works great for add and edit it doesn't (at least for me) for remove.

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 25 Jun 2014, 08:31 AM
Hello,

It works for me: http://trykendoui.telerik.com/@mishoo/IKEw

Calling preventDefault will prevent removing the event.

However, this is not how you implement your custom confirmation window.  I'm not sure you can do that, but you can at least change the confirmation message by customizing editable.confirmation.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Peter
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or