Save

I would like a functionality where I will get a confirm box when I try to leave a page in which i made changes to some rows in the grid but have not saved them yet. How can i do this?

In case of dataprocessor usage you can check such row by

    if (!dataProcessor.getSyncState()){
       //there are not synced rows
       if (confirm(“Are you sure”))
          do_some();
       else
          do_other();
    }