Hello, guys, I was wondering is there any way to stop a panel from collapsing. Here is my use case. When a panel is closed an Ajax call is initiated and until that ajax call is not completed I will not be closing that panel.

Now I have added the listeners to it like onBerforeCollapse or collapse. Now according to my understanding, I will need to do something in onBeforeCollapse because the collapse one is called only if the section is collapsed So I'm thing of stopping the collapse in onBeforeCollapse function and then collapsing that section in the success callback of Ajax

But the only problem that I'm facing is that I can't understand how to stop collapsing so if help will be appreciated