Where are you adding the event listener? Can you use itemClick event? ________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Monday, December 17, 2007 12:59 PM To: [email protected] Subject: [flexcoders] DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is cli Hi I am a newbie with a problem - I have a datagrid with an itemRenderer. The itemRenderer is an AS class that extends LinkButton and just checks if the data is 0 or not. If it is 0 then disable the button. Then it adds an event listener: addEventListener(MouseEvent.CLICK, Application.application.cellClick); This function gets called correctly but now I need to get the columnIndex and rowIndex of the cell that the linkbutton was in. The target and currentTarget are the same (The custom ItemRenderer class). If I then try parentDocument, it returns the panel that holds the datagrid. None of the panels or datagrids have ID's as they are created on the fly based on a HTTPService lookup. Can anyone tell me how to go about getting the columnIndex and rowIndex of the clicked linkbutton? Best Regards Steve

