Alex,

  I think I figured out the copy paste part, certaily with the help of you 
guys.
  Here are the steps:
    1. add two options(copy a row, paste a row) on the datagrid right-
click menu using PMContextMenu.
    2.  Set up event when the 'copy a row' option clicked, get a row and 
paste on a textfield, which was created and hidden. Move focus on the 
textfield.
    3. which you click on a row and right click to select 'paste a row', get 
the copied information from the textfield and paste on the selected row.

I got some codes by googling and took some leaves from my colleague.
It works partially now. Will paste the program here once working fully.

Thanks,

Fudong


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> 
wrote:
>
> Almost all visual stuff is done by customizing itemRenderers, 
especially
> background color.
> 
>  
> 
> It'll be hard work to only open an editor on double-click, but it might
> be possible.
> 
>  
> 
> I don't have a copy-paste example.  Are you copying from the DG to
> another DG or to another non-flex app?
> 
>  
> 
> ________________________________
> 
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of fudongli
> Sent: Tuesday, March 13, 2007 12:26 AM
> To: [email protected]
> Subject: [flexcomponents] Question about DataGrid item 
backgroundcolor
> and default focus behaviour
> 
>  
> 
> Guys,
> 
> I am still learning DataGrid. Got a few questions:
> 
> First, is it possible to change an item background color when clicked? 
> I am thinking itemRenderer may be the only way to do it. Is it right?
> 
> Second, if I click on a datagrid, if it has editable items, the first
> one in the 
> clicked row will be focused. I meant you will see the text field shows
> up 
> and text highlighted if there is. Is it possible I change this behaviour
> so this 
> only happened when the field is double clicked.
> 
> Third, I am trying to add a copy-paste feature on a datagrid which
> including 
> copying rows or one item. Do you have a good example?
> 
> Thanks in advance,
> 
> Fudong
>


Reply via email to