3 Replies Latest reply on Aug 14, 2012 8:45 PM by Peng Gao

    ToggleButtonBar / ViewStack - Events before change takes place

      here my problem:
      I have a ToggleButtonBar with a ViewStack as a dataProvider. If I change data on a canvas of the ViewStack and the user switches to another canvas with the ToggleButtonBar I want to show the message "Data not s saved. Do you want to save? (YES/NO/CANCEL)". I can't find the right place in the code to put that message. If I put it in the change event of the viewStack, the new canvas already shows while the message appears. Is there an event before the ToggleButtonBar is actually changing. If anyone can help me I would be very happy. Thanks in advance!