So this thing got posted 3 times. Trying to find these 2 to delete.. I just saw 
them now as I was doing more searches.

This post has some of my code. 
 151550 Re: Datagrid itemrenderer for adding multiple linkbuttons in same gr  

I wasn't using a editor but maybe the concept is the same.

I did as you say: datagrdcol.itemrenderer = new ClassFactory(MyCustomRenderer,  
and then tried to create separate itemrenderers for each column but I was 
having trouble writing the one that contains multiple link buttons.






--- In [email protected], "Tracy Spratt" <tr...@...> wrote:
>
> 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