Unexpected behaviour of args.Cancel in OnPopupClose event

Hi,

I was trying to do my own data validation and so I found a function on this forum to prevent closing of the Editor Popup. It works, it disables the popup, but it disables the "save" and "cancel" button as well, so there's no way to save the data again after correcting the input fields. 

Is there any workaround how to prevent the popup close correcly? (I've also tried the args.cancel = true in ActionBegin, but it always closes the popup).

The thread, where I got the inspiration: 

https://www.syncfusion.com/forums/162256/how-to-prevent-editor-windows-close-in-blazor-scheduler

My testing code and videos of behaviour is in the attachement.

Thanks a lot for help and have a nice weekend

Jakub


Attachment: 20220506_Scheduler_Prevent_PopupClose_426e830e.zip

4 Replies

RM Ruksar Moosa Sait Syncfusion Team May 9, 2022 01:55 PM UTC

Hi Jakub,


We have checked the reported problem and let you know that we could reproduce it at our end. So, we have logged the below bug report. The fix will be included in our weekly patch release, which is expected to roll out on May 24, 2022, and would appreciate your valuable patience until then. You can track the status by using the below link.

Feedback: https://www.syncfusion.com/feedback/34751/unexpected-behavior-of-args-cancel-in-the-onpopupclose-event


Regards,

Ruksar Moosa Sait



JP Jakub Prosek replied to Ruksar Moosa Sait May 10, 2022 07:04 AM UTC

Hi Ruksar,


thanks a lot for investigation and information about next steps. Will look forward to new version :).


Have a nice day 

Regards, Jakub



SK Satheesh Kumar Balasubramanian Syncfusion Team May 11, 2022 08:54 AM UTC

Hi Jakub,

Thanks for the update.

We will let you know once the patch will be published.

Regards,
Satheesh Kumar B


SK Satheesh Kumar Balasubramanian Syncfusion Team May 18, 2022 02:47 PM UTC

Hi Jakub,


We are glad to announce that our weekly patch release v20.1.56 has been rolled out successfully. In this release, an issue with unexpected behavior of args.Cancel in the OnPopupClose event has been fixed. As a result, we recommend you upgrade to the latest version of our Syncfusion package to avail of those changes.


Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.1.56?type=all#scheduler


Kindly check the reported defect in the latest version and get back to us if you need any further assistance.


Regards,

Satheesh Kumar B


Loader.
Up arrow icon