0

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Tyr1on
  • 1,999
  • 2
  • 13
  • 20

1 Answers1

1

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" >
Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193
  • Umar, thanks for quick response but this is not what I am looking for, . Question here is that I want to be able to set labels in particular AdvancedDatagridColumn depending on another Column's--> itemrenderer's(here, it is a dropdown list) selected Item value. How from itemrenderer's data, I can set data in other column. – Tyr1on Dec 30 '11 at 08:28
  • Datagrid column has a property change it dispatches an event which can call a function. – Muhammad Umar Jan 03 '12 at 10:02