Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
XamDataGrid - Get Confirmation From User Before Moving ActiveRecord MVVM
posted

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?

 

 

Parents
  • 138253
    Verified Answer
    Offline posted

    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.

Reply Children
No Data