actionscript-3apache-flexflex4.5advanceddatagrid

Flex Advanced Datagrid - access value of itemrenderer of one column from other column


I have a AdvancedDatagrid with two columns lets say. First column has item renderer as DropdownList.

Now, on change of DropdownList, I want to update label in second column, how would I do that?


Solution

  • You can access flex objects with their IDs just like here. Hope this helps

     <mx:DataGridColumn headerText="FirstColumn" id="yourFirstColumnId" dataField="FirstColumnDataProvider" change="functionName">
    
          <fx:Script>
              <![CDATA[
    
    
            public function functionName():void
            {
            yourSecondColumnId.headerText= "".
            }
                   ]]>
    
             </fx:Script> 
            </mx:DataGridColumn>
    
     <mx:DataGridColumn headerText="SecondColumn" id="yourSecondColumnid" >