2 Replies Latest reply on Apr 26, 2010 3:51 PM by majester8425

    Can someone tell me how to attach a dataprovider to an inline item render of combo box

    majester8425

      <mx:DataGrid

       

      id="myGrid" editable="true" dataProvider="{myDataProvider_1}">

       

       

       

       

      <mx:columns>

       

       

       

       

           <mx:DataGridColumn

                dataField="name"

                editorDataField="

      selectedItem"

                itemEditor="

      {inlineEditor}"/>

       

       

      </mx:columns>

      </mx:DataGrid>

       

      It references

      <fx:Component

       

      id="inlineEditor">

       

           <mx:ComboBox >

       

                <mx:dataProvider>

       

                     <fx:String>A</fx:String>

       

                     <fx:String>B</fx:String>

       

                     <fx:String>C</fx:String>

       

                     <fx:String>D</fx:String>

       

                     <fx:String>E</fx:String>

       

                     <fx:String>F</fx:String>

       

                </mx:dataProvider>

       

           </mx:ComboBox>

       

      </fx:Component>

       

      However there is no way to make this refrence a array Collection. The following does not work. I get access of undefined property on the dataprovider array clooection which has been defined. Any Ideas. I just want to set the data provider for this element.

      <fx:Component id="inlineEditor">

       

           <mx:ComboBox dataProvider={"myDataProvider_2"}>

       

           </mx:ComboBox>

       

      </fx:Component>