Closing a Kendo Confirm Dialog

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

    Posted 25 Apr 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 () {
                    $('body').addClass('waiting');
                    $('html,body').css('cursor', 'wait');
                    $('btnUpdateCache').addClass('disabled');
                    kendoConsole.log("Updating cache data please wait");
                    kendoConsole.log("Do not navigate away from this page");
                    $('#console-log').show();
                 CLOSE IT HERE  <<<<<
                updateSystemCache();
            }, function () {
                //kendo.alert("You chose to Cancel action.");
            });

     

    Given that code how would I close it?

  2. Eyup
    Admin
    Eyup avatar
    3841 posts

    Posted 26 Apr Link to this post

    Hello Reid,

    It should be automatically closed and you don't have to do anything:
    https://demos.telerik.com/kendo-ui/dialog/predefined-dialogs

    Generally, you can also use the close method to do that explicitly:
    https://docs.telerik.com/kendo-ui/api/javascript/ui/dialog/methods/close

    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:
    https://dojo.telerik.com/OhIHAhun/9

    Regards,
    Eyup
    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