2 Replies Latest reply on Feb 11, 2007 1:01 AM by Newsgroup_User

    ItemRenderer how to call a function in (this.function) .

    RyoZero
      I using an itemRenderer to populate miy datagrid with 3 custom buttons, but i need to call a function writed in....
      the begin of my form, not in my RenderComponent,

      HOW I DO THAT...?


      <mx:Component id="ResultadoRender">
      <mx:VBox
      width="80" height="26"
      horizontalAlign="center" verticalAlign="middle">
      <mx:HBox width="100%" horizontalAlign="center">
      <mx:Button label="" visible="true" icon="@Embed('../../icons/users 2.png')" click="ChecarBoton();" width="24" />
      <mx:Button label="" visible="true" icon="@Embed('../../icons/user green.png')" click="ChecarBoton();" width="24" />
      <mx:Button label="" visible="true" icon="@Embed('../../icons/display.png')" click="ChecarBoton();" width="24" />
      </mx:HBox>
      </mx:VBox>
      </mx:Component>

      <mx:DataGrid x="10" y="40" width="700" height="382" id="dtgUsuarios">
      <mx:columns>
      <mx:DataGridColumn headerText="Nombre(s)" dataField="NAME"/>
      <mx:DataGridColumn headerText="Nombre Usuario" dataField="NAME"/>
      <mx:DataGridColumn headerText="Nombre Grupo" dataField="NAME"/>
      <mx:DataGridColumn headerText="Opciones" dataField="NAME" itemRenderer="{ResultadoRender}"/>
      </mx:columns>
      </mx:DataGrid>