Yes (shown below). 

But I actually prefer the other Fotis' suggestion....but you will have 
to ensure signOut() is defined in the parentDocument.

<mx:headerRenderer>
  <mx:Component>
     <mx:Label text="End Time" click="signOut()"/>
      <mx:Script>
          public function signOut():void
          {
          }
      </mx:Script>
   </mx:Component>
</mx:headerRenderer>


--- In flexcoders@yahoogroups.com, "markgoldin_2000" 
<markgoldin_2...@...> wrote:
>
> Should it be like this:
> <mx:headerRenderer>
>                                               <mx:Component>
>                                                       <mx:Label 
> text="End Time"/>
> <mx:Script>
> </mx:Script>
>                                               </mx:Component>
>                                       </mx:headerRenderer>
> --- In flexcoders@yahoogroups.com, "bhaq1972" <mbhaque@> wrote:
> >
> > You have to embed a <mx:Script> tag inside the Component tag i.e
> > 
> > <mx:Component>
> > <mx:Label ...>
> > <mx:Script>
> > etc
> > </mx:Component>
> > 
> > --- In flexcoders@yahoogroups.com, "markgoldin_2000" 
> > <markgoldin_2000@> wrote:
> > >
> > > I am specifying a heder renderer in the following way:
> > > <mx:DataGridColumn dataField="endtime"
> > >                                           width="70" 
> > > sortable="false">
> > >                                           <mx:headerRenderer>
> > >                                           <mx:Component>
> > >                                                   <mx:Label 
> > > id="signout" text="End Time"/>
> > >                                           </mx:Component>
> > >                                   </mx:headerRenderer>    
> > >                           
> > >                           </mx:DataGridColumn>
> > > I am also trying to specify a click listener like this:
> > > ...
> > > id="signout" text="End Time" click="signOut()"
> > > that generates a compiler error:
> > > 1180: Call to a possibly undefined method signOut.
> > > 
> > > Does that mean that the only way of getting this working is to 
go 
> to 
> > > a custom header renderer?
> > > 
> > > Thanks
> > >
> >
>



Reply via email to