0 Replies Latest reply on Dec 7, 2006 8:58 AM by ehelier

    Updating data/states together

    ehelier
      Say i got a component with a xml-binded datagrid.
      I want a state with a little form appearing to add an item to the xml.

      I defined state's transitions so that my form appear and disappear smoothly.
      When i validate the new item data user inputs, i want my datagrid to update and my form to disappear.

      The problem is that the events of my form disapearing and my datagrid updating fires together, and transition is slow.
      How can i design such a case to do things in sequence :
      1. make my form disapear == go back to default state
      2. wait for state transition to complete
      3. update datagrid

      Any idea ?