1 Reply Latest reply on Mar 17, 2010 1:12 AM by Aman_SS

    how to get after changing itemrenderer combobox new values in datagrid

    peddireddyss Level 1

      Hi All,



         Am struggling since last twodays how to get datagrid data after changing column item renderer (combobox).Am getting simple editing data but am unable to get itemrenderer data please help me this is very urgent.Please give some useful suggessions.





      <?xml version="1.0"?>
      <!-- dpcontrols/DataGridPassData.mxml -->
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            import mx.collections.*;
            private var DGArray:Array = [
               {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},
               {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99}];
            public var initDG:ArrayCollection; 
            public function initData():void {
               initDG=new ArrayCollection(DGArray);
            private function checkme():void
                var tarr:ArrayCollection = this.myGrid.dataProvider as ArrayCollection;



         <mx:DataGrid id="myGrid" width="350" height="200"
            dataProvider="{initDG}" >
               <mx:DataGridColumn dataField="Album" />
               <mx:DataGridColumn dataField="Price" />
               <mx:DataGridColumn itemRenderer="DGItemrenderer"/>
         <mx:Button label="Check" click="checkme()"/>






          import mx.controls.ComboBox;
          public class DGItemrenderer extends ComboBox
              public function DGItemrenderer()
                  dataProvider = ['Continue','Cancel','Change'];





      Thanks and Regards,