RE: [flexcoders] Re: ItemRenderer and Events

2006-06-09 Thread Stacey Mulcahy










I think you need to look at
IDropinItemRenderer or something like that











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpwarmer
Sent: Friday, June 09, 2006 1:25
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
ItemRenderer and Events











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







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Re: ItemRenderer and Events

2006-06-09 Thread Jeremy Lu



don't forget event in Flex2 *bubbles*.you can listen to click event on image inside the item renderer and manually dispatch a ImageClick event then it will eventually bubble up to the container DataGrid.
this way your outer application just have to handle this event from DataGrid then display detailed information in other controls.Jeremy.On 6/10/06, 
jpwarmer [EMAIL PROTECTED] wrote:









  



--- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] 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 ;)


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___