Hi,
I am working on XamDataGrid (2012.vol1) where I am validating the row using *SupportDataErrorInfo* property.
It is working well as user is getting validation icon errors for the incorrect data, but there is an additional functiona I want to add:
- When the whole row is invalid (i.e. one of the fields didnt pass validation) and user tries to move to another row (i.e. changing the Active Record), I would like to get confirmation from user to say:
- Would like to cancel your changes to the previous row, pls click "No" to go back and fix it, otherwise press "Yes" to ignore the changes.
Would it be possible to implement this via clean MVVM way?
Hello Anvarbek,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used interactions to handle the XamDataGrid’s RecordDeactivating event and there I used MessageBox for confirmation. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
tnx for the quick example. I went through the same way (using MVVMLight's EventToCommand) to make MVVM Friendly).
Tnx mate