Flex Datagrid File Download old value
- by Vish
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>