--- In [EMAIL PROTECTED]ups.com,
"Jim Robson" <jim.robson@...> wrote:
>
I already try that way.....the problem is that I can't catch the event
that the renderer dispatch...I don't want that the renderer chatch the
event.The DataGrid must catch it, so i can do something with it...
<mx:DataGrid id="dataGrid" dataProvider="{valuesArray}"
resize="true"
width="100%" height="100%" visible="false"
sortableColumns="true">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="Detail"
itemRenderer="ImageCellRenderer"
textAlign="center" width="40"
dataField="id" />
.....
The general idea is that when click on the image (and just on the
image, not in the row...i don't care about the selected item at the
moment) an event is dispatched so details over the element are showed
on a diferent panel, the datagrid shows a very small set of data, the
remain information must be obtained by calling a service.
PD:Sorry about my english, it is obvious that is not my native language ;)
> Can you just use the buttonMode and click attributes?
>
>
>
> <ImageItemRenderer id="myImageItemRenderer" buttonMode-"true"
> click="imageItemEventHandler():">
>
>
>
> _____
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of jpwarmer
> Sent: Friday, June 09, 2006 11:01 AM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] ItemRenderer and Events
>
>
>
> Hi,
>
> I got a DataGrid with an ImageItemRenderer (that`s a custom component
> that shows an image on the cell). I want to dispatch an event when
> users click on the image.
>
> How can I do that???
>
> TIA,
>
> JP
>