Join David Gassner for an in-depth discussion in this video Building custom renderers for Spark DataGrid cells, part of Flash Builder 4.5 and Flex 4.5 New Features.
The new Spark version of the DataGrid control supports all of this Spark…architecture including dynamic rendering and the ability to use MXML graphics as part of skins.…I am going to demonstrate this using an existing project that's part of…the Exercise Files.…If you have access to the Exercise Files, import the project Renderers.fxp from…the 03_Spark folder.…Open the Main application file and then once its open switch to Design mode.…
I'll show you how to create a custom item renderer for one of the columns of DataGrid.…I'll select the DataGrid that's already a part of the application, then go to…the Properties view on the lower- right and click Configure Columns.…I'll click on the Price column in the list and then over on the right under Data…binding where you have a label of Item renderer, I'll click this menu and choose…Create Item Renderer.…That takes me to a dialog box that allows me to create a custom item renderer…that controls the display of my data.…
I'll set the name of my item renderer to PriceRenderer and I'll set the package…
Recommended prerequisite: Flash Builder 4 and Flex 4 Essential Training.
- Coding with Quick Assist
- Using code completion on metadata tags and states
- Using new Design mode configuration and view capabilities
- Using the Spark versions of the DataGrid, Form, and Image components
- Creating a Flex project for Android applications
- Handling navigation in a view-based mobile application
- Using the Flash Catalyst CS5.5/Flash Builder 4.5 workflow
Skill Level Intermediate
Q: Is Flash Builder compatible with Mac OS X 10.7 (Lion)?
Q: I'm using the most recent versions of Flash Builder and Flex. The projects provided in this course's exercise files don't run correctly. How do I get the code working?
A: The course's exercise files were built for the original release of Flash Builder and Flex 4.5. There are two potential issues: the version of the Flex SDK linked into each project and the version of Flash Player you have installed on your system.
For each project, follow these steps after importing it into Flash Builder:
- In the Package Explorer view, right-click on the project name and choose Properties.
- Click Flex Compiler.
- Change the Flex SDK Version to Use default SDK.
- Click OK.
- The project should now compile correctly.
- Open Windows Explorer (Windows) or Finder (Mac).
- Navigate to the Flash Player installation folder.
- Open the player subfolder.
- Open the subfolder for your operating system (Mac or Windows).
- Open the version subfolder.
- If running on Mac, open the DMG file and install the Flash Player application.
- If running on Windows, run the Flash Player installer executable for whichever browser you use for previewing Flex applications.