confirm
Opens a Kendo UI Confirm popup. Similar to the native window.confirm() method.
Example - Open a Kendo UI Confirm on the page
<script> kendo.confirm("Confirm text"); </script> Parameters
text String
The text to be shown in the Confirm popup.
Returns
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.
Example
<script> kendo.confirm("Confirm text") .done(function(){ /* The result can be observed in the DevTools(F12) console of the browser. */ console.log("User accepted"); }) .fail(function(){ /* The result can be observed in the DevTools(F12) console of the browser. */ console.log("User rejected"); }); </script> In this article