In your examples of the splitview, you have tree -> listgrid -> details. On handsets you go "down" into the hiearchy then use the Navigation button to go back up.
What we want is to check if the user has edited something in the detail pane, and pop up a dialog saying "record has changed, are you sure you want to go back?" if the user clicks the back button without having saved.
I looked at the SplitPane, and you can add a NavigationClickHandler. However, i cannot see how you would postpone or cancel the NavigationClickEvent. What i would like is to "hold on" to the event while we show a dialog to the end user, if he/she clicks yes, we go through with the event, if no, we stay on the detail pane.
Is this possible?
What we want is to check if the user has edited something in the detail pane, and pop up a dialog saying "record has changed, are you sure you want to go back?" if the user clicks the back button without having saved.
I looked at the SplitPane, and you can add a NavigationClickHandler. However, i cannot see how you would postpone or cancel the NavigationClickEvent. What i would like is to "hold on" to the event while we show a dialog to the end user, if he/she clicks yes, we go through with the event, if no, we stay on the detail pane.
Is this possible?
Comment