Edit this page

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(){
            console.log("User accepted");
        })
        .fail(function(){
            console.log("User rejected");
        });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy