I have some complex requirements for working in icons in the AdvancedDataGrid
I have an icon function that assigns one of the following icons
private var sentIcon:Class;
private var confirmedIcon:Class;
private var inIcon:Class;
Each row in the AdvancedDataGrid has one of the above icons.
When a user clicks on a row I want to get the name of the icon the row is using from the event, is this possible? Also is it possilbe to change an icon dynamically with out having to refresh the dataprovider to call the icon functon again?
What I really need is the name of the class that is used as the icon ie
Any ideas would be great?
In an itemCLick event this seems to return the required info:
(((event as ListEvent ).itemRenderer as AdvancedDataGridGroupItemRenderer).listData as AdvancedDataGridListData).icon
You can add listener for ADG itemClick event.
Icon is used in itemRenderer. Icon is a Class, so if you need the name you can use flash.utils.getQualifiedClassName() to get the name of this class.