Updates, new content, and other helpful information from the Flex Documentation Team.

Posts in Category "DataGrid"

While working on a recent project, I couldn’t find examples of adding inline links to the Spark and MX DataGrids. There were lots of examples of item renderers, but nothing that did exactly what I wanted: just a hyperlink in the DataGrid cell.

Below are two examples: one shows the Spark DataGrid and the other shows the MX DataGrid with inline links.

There are some subtle differences between how to define an inline item renderer. There are also some subtleties to the way you define the links. I’ll let the code speak for itself, but note that there are some things to keep in mind:

The cursor changes to a hand when you mouse over the link (without embedding a new cursor image or invoking the CursorManager)