File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Flex and the fly likes Adding link in datagrid - flex 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Adding link in datagrid - flex 4" Watch "Adding link in datagrid - flex 4" New topic

Adding link in datagrid - flex 4

rashmi coorg

Joined: Jul 11, 2011
Posts: 19
i have a datagrid in which one of the columns should display a link. But the label of link in all the rows is not the same.. how can i achieve this?

i have tried the Example: 'Using an item renderer with a List control' in the link
but not able to display the grid correctly...
Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256

I'll give you the Flex 3 solution as I haven't worked on Flex 4. Overriding item renderer is indeed the way to go.

Every control, in your case DataGridColumn, has a item renderer property. You can add your own custom components to this renderer and that will be rendered when you compile the mxml although it might not be displayed in the Flex builder.

Try this, it might work.

Note : This is not a hyper link.

I agree. Here's the link:
subject: Adding link in datagrid - flex 4
It's not a secret anymore!