Closing a Kendo Confirm Dialog

2 posts, 0 answers
  1. Reid
    Reid avatar
    445 posts
    Member since:
    Oct 2008

    Posted 25 Apr 2019 Link to this post

    I have the following code to present a confirmation to the user but I am not sure how to close it ..

     kendo.confirm("Are you sure that you want to Update the System Cache? (<strong>Recommended<strong>)  </br></br> If Yes do not navigate away from this page")
                .then(function () {
                    $('html,body').css('cursor', 'wait');
                    kendoConsole.log("Updating cache data please wait");
                    kendoConsole.log("Do not navigate away from this page");
                 CLOSE IT HERE  <<<<<
            }, function () {
                //kendo.alert("You chose to Cancel action.");


    Given that code how would I close it?

  2. Eyup
    Eyup avatar
    3893 posts

    Posted 26 Apr 2019 Link to this post

    Hello Reid,

    It should be automatically closed and you don't have to do anything:

    Generally, you can also use the close method to do that explicitly:

    If you have different requirements or further instructions, you can modify the following live dojo sample do demonstrate your specific case and send it back to us for further investigation:

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top