result Promise

Promise a jQuery promise instance, which can be used for callbacks, or passed to jQuery.when. The jQuery Deferred object resolves to:

  • done() - when user has pressed the "OK" button;
  • fail() - when user has pressed the "Cancel" button.


<div id="confirm"></div>
  content: "Do you accept?",
    okText: "OK"
/* The result can be observed in the DevTools(F12) console of the browser. */
}).data("kendoConfirm").result.done(function(){console.log("User accepted"); }).fail(function(){console.log("User rejected");});
In this article