I've managed to find the answer myself, it was on this page:

 

http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/

 

It doesn't involve progress bars, but the idea is the same.

 

Cheers,

Mark

 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 26 April 2007 11:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Updating progress bar in datagrid when
uploading files

 

Hi, I only joined yesterday, not sure if the email got received or not.

 

I am basically just trying to hook up the ProgressBar.source property
with a property stored on the data provider
(m_uploadFileList[i].FileReference). 

 

Thanks,

Mark

 

 

________________________________

From: Mark Ingram 
Sent: 25 April 2007 13:43
To: FlexCoders (flexcoders@yahoogroups.com)
Subject: Updating progress bar in datagrid when uploading files

 

Hi, I have a standard data grid with a progress bar in the 3rd column:

 

                        <mx:DataGrid id="filesDataGrid"
dataProvider="{m_uploadFileList}" editable="false">

                                    <mx:columns>

                                                <mx:DataGridColumn
headerText="File Name" dataField="label" />

                                                <mx:DataGridColumn
headerText="Size" dataField="size" labelFunction="displaySizeLabel" />

                                                <mx:DataGridColumn
headerText="Upload Progress" sortable="false">

 
<mx:itemRenderer>

 
<mx:Component>

 
<mx:VBox horizontalAlign="center">

 
<mx:ProgressBar id="progressBar" labelPlacement="center" label="%3%%"
mode="manual" width="80%" height="100%" />

 
</mx:VBox>

 
</mx:Component>

 
</mx:itemRenderer>

                                                </mx:DataGridColumn>

                                    </mx:columns>

                        </mx:DataGrid>

 

m_uploadFileList is an array collection of FileReference objects. How
can I hook up the progress of each file upload (done via FileReference)
to the progress bar on each line? I understand each file must be done in
turn.

 

Any pointers on this will be gratefully received!

 

Thanks,

 

Mark

 

 

 

 

Reply via email to