Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 06, 2008 08:07
open dhtmlx forum
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?
Answer posted by Support on Feb 07, 2008 06:34
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();
    }