Closing a Kendo Confirm Dialog

2 Answers 1672 Views
Dialog
Reid
Top achievements
Rank 2
Reid asked on 25 Apr 2019, 08:57 PM

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 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Apr 2019, 07:32 AM
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.
Jesús E.
Top achievements
Rank 1
commented on 15 May 2020, 06:49 PM

Good morning, Im use kendoDialog in the content put the template from html, when open the dialog i do some operations before to open but only works one time, in the console write the result from that operation but only prompt one time, in the next time to open the dialog not write anything in the console, i hop your help me please. thanks.

0
Eyup
Telerik team
answered on 19 May 2020, 08:18 AM

Hi Jesús,

 

You can check the F12 browser debugger for any script errors. If there aren't any, could you modify the following sample to demonstrate the problem and send it back to us?
https://dojo.telerik.com/USEZoTac

 

Regards,
Eyup
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Dialog
Asked by
Reid
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Share this question
or