Hi George, Thanks for the input, finally i use two event generated by canvas and button on the item renderer and trap them. im not sure if its a bad practice..but meanwhile its working :)
ary. --- George <[EMAIL PROTECTED]> wrote: > Add a focusInHandler listening to focusIn event, > when you move your > mouse over a cell, you'll get the rowIndex you're > working on. So when > you click on the button, run function B, if not, try > to dispatch a > itemClick event or some way else. > > George > > Ary wrote: > > Hi George, > > > > Thanks for replying. > > i only use one column on the datagrid (all data > are > > packed in one column with itemrenderer, including > my > > the button that i want to separate and other > text), so > > i still cant trap it :( > > > > i use this link to see how column and rowIndex > work > > > http://livedocs.adobe.com/labs/flex3/html/help.html?content=dpcontrols_17.html > > > > > > ary. > > > > --- George <[EMAIL PROTECTED]> wrote: > > > > > >> ItemClick has event.|columnIndex and > event.rowIndex > >> you can use, just > >> add condition for function A when column of > button > >> was clicked, return. > >> > >> George > >> | > >> Ary wrote: > >> > >>> Hi Guys, > >>> > >>> i have a datagrid with itemrenderer component, > >>> > >> inside > >> > >>> that item rendered there is a button that call > >>> function B, and in datagrid itself, has > itemclick > >>> event applied to call function A. > >>> > >>> the problem arrive when i try to click the > button > >>> inside item renderer, not just it call function > B, > >>> > >> but > >> > >>> it also call function A, cause i want it just > call > >>> function B. > >>> > >>> i already to search some reference on this but > >>> > >> cant > >> > >>> found it yet :| > >>> > >>> Really appreeciate the help. > >>> > >>> rgrds > >>> ary. > >>> > >>> > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com