Show confirmation popup (Yes/No) on dropdownlist items click and set it to previous value if user select No

Created a dropdownlist and added a confirmation dialog box saying " are  you sure you want to change the value, Yes/No" 

Scenario 1: If the user select Yes it is working fine. 


Scenario 2: If the user selects No then dropdownlist should cancel the change event and the previous state should be maintained. Tried to set the value field property with the previous value but it is not working. 


Code example 

https://stackblitz.com/edit/angular-syncfusion-dropdown-value-f4xiut?file=app.component.ts


1 Reply

BC Berly Christopher Syncfusion Team December 27, 2021 03:16 PM UTC

Hi Mitra, 
  
Greetings from Syncfusion support. 
  
Based on the requested requirement, we have prepared the sample and attached it below. We can restrict the selection with help of args.cancel in the select event argument.  
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon