1 Reply Latest reply on Nov 13, 2007 7:52 PM by atta707

    Accessing itemrenderer combobox dataprovider in datagrid

    blue444
      Hi,

      I have a datagrid that has a combobox as an itemrenderer. I need to populate the comboxbox's dataprovider not using binding so I need access to the actual property of the combobox. My reason for this is that each combox could have a different set of values depending on what's being returned by the backend query. Does anyone know how to do this?

      //Need to assign arrDispositions to below combobox.
      private function handlePartiesCourtDisp(event:ResultEvent):void{
      var arrDispositions:ArrayCollection;
      arrDispositions = new ArrayCollection(event.result as Array);

      }

      <mx:DataGrid id="dgDaily" width="100%" height="100%"
      wordWrap="true"
      dataProvider="{parentApplication.partiesCourt}">

      <mx:DataGridColumn id="dgcDisposition" headerText="Disposition" dataField="DISPOSITION" width="114"
      >
      <mx:itemRenderer>
      <mx:Component className="Disps2">
      <mx:ComboBox
      change="outerDocument.updateDispositions(this.selectedItem)"
      />
      </mx:Component>
      </mx:itemRenderer>

      </mx:DataGrid>