Hi All,

I have a datagrid with a click event calling some functions. I decided
I didn't want the click event to happen on the whole row, just on a
particular column. I have an itemRenderer for the column with a Text
component formatted to look like a link, so I decided to remove the
click event on the datagrid and add it to the text componenet in the
itemRenderer. When I do, the page won't compile and I get an error
saying I'm making a call to an undefined function. I tried something
simpler and set the click event to change the current state. The page
compiled but on click got an error, "call to undefined state".

Here's my itemRenderer:

<mx:Component id="dataCellLinkTest">
 <mx:Text 
   color="0x0000ff" 
   textDecoration="underline"  
   textAlign="left" 
   buttonMode="true" 
   useHandCursor="true" 
   mouseChildren="false"
   click="totalEmployeeData()"
  />
</mx:Component>

Is there something stupid I'm missing here? Why would an event in an
itemRenderer not be able to see the functions or states in my application?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to