The following example is a Simple searchable DataGrid, I have also included dataGrid item renderer to show how to define/use a dataGrid “itemRendrer”. Search and Highlight a row depending on the searched text in a dataGrid. Define a cursor to traverse dataGrid rows.
The Objective of this example :
- How to create custom item rendrer using Updatedisplaylist and data property.
- How to use the itemrendrer (detail).
- How to use custom cursors in a dataGrid.
- how to write a custom component extending a base component in this case dataGrid. (highlight a row in the dataGrid).
Download source:
- search_datagrid.mxml (Main application)
- UserLabelRendr3r.as (Item rendrer)
- CustomRowColorDG.as (highlight selected row in a dataGrid)
Sample : search_datagrid
Related posts:
- Copy functionality in DataGrid
- Inline Itemrenderer
- Flex dataGrid default column sort
- Printing dataGrid in Flex
- Filter datagrid using a hslider
Tags: component, cursor, datagrid, flex, itemrenderer, lifecycle




