0 Replies Latest reply on Aug 18, 2009 12:23 PM by rahi9

    Unable to view ComboBox inside AdvancedDataGridColumn

    rahi9

      Hello,

      First I ahve to say that I am a beginner in Flex domain.

      I am trying to show options in combobox inside an AdvancedDataGridColumn. In total I have two columns. One is a regular data column and the other is a ComboBox. I am able to see the first column but not the combobox one. Below is the code snippet.

       

      I am not sure whats missing. Any help is really appreciated. I tried to lookup other examples but could not figureout whats missing.

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      <mx:AdvancedDataGrid

       

       

      id="assignmentDataGrid" alternatingItemColors="[#EEEEFF,#EEEEFF]

      "

      dataProvider="

       

      {filteredAvailableReports}" width="100%" rowCount="10"

      >

       

       

      <mx:columns>

       

       

      <mx:AdvancedDataGridColumn id="reportName" headerText="Report Name

      "

      dataField="

       

      name" labelFunction="reportsListLabelFunction"

      />

       

       

       

      <mx:AdvancedDataGridColumn id="ftpConnCol" headerText="FTP Options" editable="true" editorDataField="value"

      >

       

       

      <mx:itemEditor>

       

       

      <mx:Component>

       

       

      <mx:ComboBox editable="true"

      >

       

       

       

      <mx:dataProvider>

       

       

       

      <mx:ArrayCollection>

       

       

      <mx:String>User1

      </mx:String>

       

       

       

      <mx:String>User2

      </mx:String>

       

       

      <mx:String>User3

      </mx:String>

       

       

       

      <mx:String>User4

      </mx:String>

       

       

      </mx:ArrayCollection>

       

       

      </mx:dataProvider>

       

       

       

       

      </mx:ComboBox>

       

       

      </mx:Component>

       

       

      </mx:itemEditor>

       

       

      </mx:AdvancedDataGridColumn>

       

       

       

      </mx:columns>

       

       

      </mx:AdvancedDataGrid>