Cancel propertygrid enum selection

Hello

I have a combobox (enum) in property grid, the Selected Value of this box binds to a property in view model, where I pop up a "Yes/No" message box, I want to cancel the change of combo box if "No", could you please advise how to do it? Thanks.

Sally

1 Reply 1 reply marked as answer

UN Unknown Syncfusion Team July 7, 2020 08:10 AM UTC

Hi Sally, 

Thanks for contacting Syncfusion support. 

We have checked your query “Need to update the enum property value of PropertyGrid based on MessageBox button click” and it can be achieved by showing MessageBox with Yes or No button whenever the setter of the respective enum property is called. In the below attached video and sample the changed value of enum propery is updated only when clock the Yes button in MessageBox. Please refer the below sample and video for same. 



Regards, 
Niranjan Kumar Gopalan  



Marked as answer
Loader.
Up arrow icon