Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding link in datagrid - flex 4

 
rashmi coorg
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic