I have a flex datagrid with cart items populated from a service. Each row has edit/delete buttons provided by a custom ItemRenderer. When I click each button I send an event from the itemrenderer which calls a service in order to edit/delete the selected item.
How can I get the id of the product form the dataprovider inside the Itemerenderer in order to send it with my custom event?
Thanks in advance
Use the DATA property of the itemRenderer.
The Flex help has a very illustrative example. If your dataProvider is:
you can access the data item as follows: