Are you setting rendereIsEditor="true"?  For interactive renderers, I
usually do not do this and handle all the interactivity in the renderer
itself.

 

Using a container for the renderer is easiest, but can have performance
issues if you have a lot of renderers on screen at once.  Basing the
renderer on UIComponent is most performant, but you have to do a lot of work
yourself.

 

You can do: datagrdcol.itemrenderer = new ClassFactory(MyCustomRenderer)

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of aramsdell2000
Sent: Monday, January 11, 2010 8:23 PM
To: [email protected]
Subject: [SPAM] [flexcoders] Multiple linkbuttons added through datagrid
itemrenderer actionscript

 

  

(Forgive me if this got posted twice...)
I have a datagrid column that for each row, has several text values each
with its own hyperlink. 

Ex: the data in the datafield looks like: "Atext, Btext, Ctext". As it is
now, I was able to add href anchor tags but they only open in a new window
with the right mouse click. The datagrid item click event takes over the
left mouse click and I am not sure how to prevent that. So I thought I would
add multiple link buttons in the datagrid column instead. My question is how
to add these multiple buttons using an itemrenderer in actionscript. If I
was adding just one I would assume it would be datagrdcol.itemrenderer = new
ClassFactory(LinkButton) and then you just set the properties of the link
button. But how do you do it if there are multiple buttons for the data in
the datafield. Do you extend the LinkButton or list data in a
customitemrenderer class? How?



Reply via email to