Tyr1on
Tyr1on

Reputation: 2339

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?

Upvotes: 0

Views: 797

Answers (1)

Muhammad Umar
Muhammad Umar

Reputation: 11782

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" >

Upvotes: 1

Related Questions