1 Reply Latest reply on Jun 4, 2009 1:47 AM by paulo.larini

    ItemRenderer sample

    mfsiddiq

      I am working on a datagrid which has itemRenderer in some of its columns.The itemRenderer has a textInput and an image .On click of the image the value edited in the textInput should be applied to the lower row textInput fields.Since the edited text is not available in the data object ,I would like to know the best way i can transmit the edited textinput value to the lower row textinput fields.

       

      Thanks in advance

      Sidd

        • 1. Re: ItemRenderer sample
          paulo.larini

          You can call parentDocumento.myfunction

           

          like:

           

          <mx:Component id="irAcoes">

          <mx:HBox width="60" horizontalGap="0" verticalAlign="middle">

          <mx:Script>

          <![CDATA[

          import com.clinica.utils.Functions;

          import com.clinica.utils.ImagePics;

          ]]>

          </mx:Script>

          <mx:LinkButton toolTip="Incluir novo hor‡rio" width="20" icon="{ImagePics.mais}" tabEnabled="false" focusEnabled="false" click="parentDocument.incluirHorario()" visible="{Functions.addDateTime(data.dataUTC, data.hora) >= new Date()}"/>

          <mx:LinkButton toolTip="Cancelar hor‡rio" width="20" icon="{ImagePics.menos}" tabEnabled="false" focusEnabled="false" click="parentDocument.cancelarHorario()" visible="{!(data.consulta != null || data.paciente == null || data.tipo==3)}"/>

          <mx:LinkButton toolTip="Marcar/desmarcar chegada" width="20" icon="{ImagePics.paciente}" tabEnabled="false" focusEnabled="false" click="parentDocument.marcarChegada(event)" visible="{!(data.consulta != null || data.paciente == null || data.tipo==3)}"/>

          </mx:HBox>

          </mx:Component>