Re: [flexcoders] Extracting Data from a DataGrid

2005-04-12 Thread Manish Jethani

On 4/12/05, digital_eyezed [EMAIL PROTECTED] wrote:

 comp:taxiControllbar dataObject=(myDataGrid.selectedItem}/

I assume it was that typo ('(' instead of '{').

 Well, it doesn't work when I select the row, and your job is to tell
 me how thick I am and say, don't be daft, this is how you do it!

[Small Wonder] How thick you are, don't be daft, and I just showed you
how to do it. [/Small Wonder]

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Extracting Data from a DataGrid

2005-04-11 Thread digital_eyezed


Ok, heres the issue:

I have a data grid which is populated from a result of a 
remoteObject call, the result is an Array of Value Objects:


mx:DataGrid id=myDataGrid dataProvider={srv.getRates.result}
mx:columns
mx:Array
mx:DataGridColumn columnName=supplier headerText=Company 
Name width=125/
mx:DataGridColumn columnName=price  headerText=Price 
labelFunction=formatCurrency width=75/
/mx:Array 
/mx:columns
/mx:DataGrid

Now I want to add a ControlBar at the bottom of the dataGrid which 
shows the price when the user selects a row (by clicking on it), so 
I created a custom component controlBar and added this line below 
the code above:

comp:taxiControllbar dataObject=(myDataGrid.selectedItem}/

and the code for the component is:

?xml version=1.0 encoding=utf-8?
mx:ControlBar xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script
var dataObject:Object;
/mx:Script
 mx:Text text={dataObject.price}/
/mx:ControlBar

Well, it doesn't work when I select the row, and your job is to tell 
me how thick I am and say, don't be daft, this is how you do it!

Cheers,

Iain






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/