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.
>>>
>>>   

Reply via email to