Flex Datagrid File Download old value

Posted by Vish on Stack Overflow See other posts from Stack Overflow or by Vish
Published on 2010-06-01T08:48:22Z Indexed on 2010/06/01 8:53 UTC
Read the original article Hit count: 316

Filed under:
|
|
|
|

Hi, We use a AIR client and WAMP server. Got a weird issue with Flex datagrid. When I download an image by double clicking on a datagrid row, the file gets downloaded correctly. But when I go on to select another row for download, even though the correct parameters are being passed, it again prompts download of old file. Upon cancelling that and trying again, it picks up the selected row. Not sure how to fix this issue, below is the datagrid code I am using,

   <mx:DataGrid x="10" y="10" id="ourDataGrid" visible="true"   enabled="true" dataProvider="{fileList}" 
  verticalScrollPolicy="on"     selectionColor="#B7C6E7"  itemClick="downloadFile(event)">            
    <mx:columns>

        <mx:DataGridColumn headerText="Name" dataField="@name" />         
        <mx:DataGridColumn headerText="LastName" dataField="@lastname" />    
           <mx:DataGridColumn headerText="FirstName" dataField="@firstname" />                 
     </mx:columns>          
</mx:DataGrid>

© Stack Overflow or respective owner

Related posts about flex

Related posts about datagrid