Hi all,
im trying out a layout with a listgrid to the left, and a form to the right that shows the fields of the selected item in the grid (single selection only). There’s an “edit” button that enables all the fields and shows save/discard buttons.
I would like the editor to popup a window saying “do you want to move away from editing” if the user changes the item in the listgrid. However, the selectionChangedHandler i add is, as you know, only called when the selection has already changed…
I don’t want to listen to editor focus lost since that could be ok, i only want to alert the user that the changes will be lost if he/she navigates away.
Is there a listener i can attach to the listgrid so that i can, potentially, prevent it from changing it’s selection?
Thankful for pointers.