[flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
Hi guys,

I'd like to pass the entire data object from a DataGrid ItemRenderer  
to a method in my controller, when the row is clicked.  The controller  
method requires an object of a specific type.  I have filled the  
DataGrid dataprovider with strongly typed objects, but when I access  
them via the data property of the item renderer, they come through as  
plain objects.  I can't seem to cast them to their original type  
either.  If this description makes any sense, has anyone dealt with  
this before?  Any suggestions?

Thanks a million


Re: [flexcoders] DataGrid data object: strong typing?

2007-09-07 Thread Tom Lee
As often happens, the answer came to me the minute I posted.  Turns  
out you can cast the data object to something else: but if you're  
using an inline component declaration in your item renderer, you have  
to include a script block and import the necessary classes.  Like  
always.  Like an intelligent person would. :)


On Sep 7, 2007, at 3:41 PM, Tom Lee [EMAIL PROTECTED] wrote:


Hi guys,

I'd like to pass the entire data object from a DataGrid ItemRenderer
to a method in my controller, when the row is clicked. The controller
method requires an object of a specific type. I have filled the
DataGrid dataprovider with strongly typed objects, but when I access
them via the data property of the item renderer, they come through as
plain objects. I can't seem to cast them to their original type
either. If this description makes any sense, has anyone dealt with
this before? Any suggestions?

Thanks a million