We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to stop the spinner when a bad request error appears

Hello, 

I was wondering how I can stop the spinner after throwing an error like bad request error. Is there a possibility to do it?

Thanks all.


3 Replies

VY Vinothkumar Yuvaraj Syncfusion Team October 12, 2022 05:12 PM UTC

Hi Henrique Giaretta,


Greetings from Syncfusion support.


You can able to stop the spinner using hideSpinner public method. In the below sample, we have rendered the Spinner inside the container div element and stop the spinner using hideSpinner method.

Documentation https://ej2.syncfusion.com/javascript/documentation/spinner/es5-getting-started/


Sample : https://stackblitz.com/edit/dmrohv-3cioht?file=index.html,index.js


Best Regards,

Vinothkumar



FG Frederik Gysel January 27, 2024 05:15 PM UTC

use  try-catch-finally or try-finally


rgds

Frederi



KP Kokila Poovendran Syncfusion Team January 29, 2024 02:20 PM UTC

Hi Frederik Gysel,


Thank you for your suggestion. If you have any other concerns or queries, please feel free to let us know. We're here to assist you further.



Regards,

Kokila Poovendran.


Loader.
Live Chat Icon For mobile
Up arrow icon