IntelliJ Java IDE
The moose likes Flex and the fly likes Adding link in datagrid - flex 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Flex
Reply Bookmark "Adding link in datagrid - flex 4" Watch "Adding link in datagrid - flex 4" New topic
Author

Adding link in datagrid - flex 4

rashmi coorg
Greenhorn

Joined: Jul 11, 2011
Posts: 17
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 http://livedocs.adobe.com/flex/3/html/help.html?content=cellrenderer_8.html
but not able to display the grid correctly...
Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 148
Rashmi,

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.

Thanks.
 
 
subject: Adding link in datagrid - flex 4
 
Threads others viewed
Connecting flex with SAP server
[Spring Security] Unable to load flash file (.swf)
Passing Flex objects to Java
Call servlets in Flex
Struts-Layout Datagrid help
developer file tools