3 Replies Latest reply on Jan 7, 2010 10:22 AM by Flex harUI

    Lost selection in the DataGrid after dispatchEvent

    master.card Level 1

      Hi I have two data list(DataGrid ) in the one page, left one list information, and right one list selected information's properies.

      When I select one of information in the left, which retrieve its properties from server(Java Jetty), code like this:

       

      <mx:DataGrid id="dgStores" dataProvider="{storesList}"
      change="dispatchEvent(new TideUIEvent('displayProp',dgStores.selectedItem));"
      width="100%" rowCount="8">
      <mx:columns>
      ......
      </mx:columns>
      </mx:DataGrid>

       

      <mx:DataGrid  dataProvider="{storesPropList}"  visible="{Boolean(dgStores.selectedItem)}" >
              <mx:columns>

      ......
              </mx:columns>
      </mx:DataGrid>

       

       

      dispatchEvent is to try to get storesPropList data

       

      Can someone figure out what cause left DataGrid lost focus (unselected)?

       

      Thanks