Currently I am using flex 2, and I had previously tried what you
posted. And it gives me the same error everytime.

Type annotation is not a compile-time constant: agentSearch [CODEGEN
agentSearch_inlineComponent1]


--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Can we do Flex 2?  Something like this:
> 
> <mx:DataGridColumn headerText="Side" columnName="agentType">
>   <mx:itemRenderer>
>     <mx:Component>
>      <mx:ComboBox>
>        <mx:dataProvider> 
>          <mx:Array>
>            <mx:Object label="Buyer" data="buyer" />
>            <mx:Object label="Seller" data="seller" />
>          </mx:Array>
>       </mx:dataProvider>
>     </mx:Combobox>
>   </mx:Component>
>  </mx:itemRenderer>
> </mx:DataGridColumn>
> 
> 
> For 1.5 I think you're going to need to write a separate subclass of
> ComboBox and just populate the DP yourself.  You could basically take
> the ComboBox I have above and just extract that to an MXML file, then
> use that as the renderer.
> 
> Matt
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jeremy Rottman
> Sent: Sunday, February 26, 2006 6:28 PM
> To: [email protected]
> Subject: [flexcoders] DG cellrendered Combobox
> 
> I have a combo box that I am using with in my search results datagrid
> that will allow users teh ability to set the side of hte agent being
> attached to the file. How can I populate the combobox in the dg with a
> simple bindable array I have made. The array is below.
> 
> 
> Datagrid:
>                               <mx:DataGrid x="10" y="67" id="ASDG"
> width="90%" height="65%">
>                                       <mx:columns>
>                                               <mx:DataGridColumn
> headerText="Name" columnName="FLD_FULLNAME" />
>                                               <mx:DataGridColumn
> headerText="Company" columnName="FLD_USEREMAIL"/>
>                                               <mx:DataGridColumn
> headerText="Address" columnName="FLD_ADDRESS"/>
>                                               <mx:DataGridColumn
> headerText="Agent Id" visible="false"
> columnName="FLD_USERLOGIN"/>
>                                               <mx:DataGridColumn
> headerText="Side" columnName="agentType"
> cellRenderer="mx.controls.ComboBox" />
>                                   </mx:columns>
>                               </mx:DataGrid>
> 
> 
> Array:
> 
> public var agentType: Array =[ {label:"Buyer", data:"buyer"},
> {label:"Seller", data:"seller"}];
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 


Reply via email to