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
close icon

Edit pop up window cancel button


Hi, 

On editor popupClose event How can I determine if Cancel button was clicked? 

1 Reply

VD Vinitha Devi Murugan Syncfusion Team November 22, 2019 07:27 AM UTC

Hi subhajit, 
 
Syncfusion Greetings. 
 
By using isCrudAction property, we can evaluate the Cancel click of the event window in popupClose event. 
 
 
  onPopupClose(args) { 
    if (args.type === "Editor") { 
      //if we can click save button, isCrudAction is true 
      if (!(this.scheduleObj.eventWindow as any).isCrudAction) { 
        alert("You just click on Cancel/close button"); 
      } 
    } 
 
Regards, 
M.Vinitha devi  


Loader.
Live Chat Icon For mobile
Up arrow icon