For some reason I'm drawing a blank on the correct syntax for this. I
can do this all day with a "standalone combobox", but missing the way
to reference it from within a datagrid. :-)

<mx:Script>
  <![CDATA[
    mx.controls.Alert.show("State selected is " +
dgLocationInfo.selectedItem.LocState.?);
  ]]>
</mx:Script>


<mx:DataGrid id="dgLocationInfo">
  <mx:columns>
    <mx:Array>
      <mx:DataGridColumn headerText="State" columnName="LocState"
editable="false" cellRenderer="StateCombo" width="120"/>
    </mx:Array>
  </mx:columns>
</mx:DataGrid>

cellRenderer:

<?xml version="1.0" encoding="utf-8"?>
<mx:ComboBox xmlns:mx="http://www.macromedia.com/2003/mxml"; width="100">
  <mx:dataProvider>
        <mx:Array>
          <mx:Object label="Alabama" data="AL" />
          <mx:Object label="Texas" data="TX" />
        </mx:Array>
  </mx:dataProvider>
</mx:ComboBox>






--
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