Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

PreivewClose and Close Events - MVVM

$
0
0

When user clicks on X, I want to check whether there are any unsaved changes in the page. 

I have isNotSaved Property which tells me that. 

Now, if there are any unsaved changes, I want to show Alert window(which is in place) to confirm by user to close pane or not.

If user says Yes, I want to close, If not I dont want to close.

How can I implement this in Pure MVVM ?


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>