I agree with Ralf. I think that on the itemEditBeginning event for a
DataGrid, you should cancel the default edit session by calling
event.preventDefault(). Then, use the event.rowIndex to help you
calculate the location of where a PopUp should be placed. You can easily
put any controls in this PopUp and then push the data to your
dataProvider when the buttons in your popUp are clicked.
 
Hope this is clear.
Joan 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Wednesday, February 06, 2008 11:53 AM
To: [email protected]
Subject: Re: [flexcoders] Datagrid: how to inline edit entire row



propably a for loop and just set each loop to being editable on the row
that you want. The Buttons would require you to use an ItemRenderer.
This may help(the Rating Part)
http://examples.adobe.com/flex2/inproduct/sdk/restaurant/finder.html
<http://examples.adobe.com/flex2/inproduct/sdk/restaurant/finder.html> 


----- Original Message ----
From: wwaishan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, February 6, 2008 1:44:20 PM
Subject: [flexcoders] Datagrid: how to inline edit entire row



Hi. I'm new to Flex.  This is what I would like to have but haven't
figured out how to implement yet:

In my data grid, when the user clicks on a row, the entire row becomes
visually editable, not just the cell that was clicked.  Within this
"edit form", there will be other controls like another text input field
and Save and Cancel buttons.

So I'm asking for a few things.
1. How do I make the entire row visually editable, not just the clicked
cell?
2. How do I add other controls to this edit form (like Save/Cancel
buttons)?  These additional controls would be contained within the same
row.

I found this screenshot that looks very much to what I'm asking for:
http://www.vitalist .com/neteffect/ wp-content/ images/cobra- preview-3.
gif
<http://www.vitalist.com/neteffect/wp-content/images/cobra-preview-3.gif
>  

I searched online but was unable to find a solution.  Any suggestions
would be appreciated.  
Thanks. 



________________________________

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i6
2sR8HDtDypao8Wcj9tAcJ>  

 

Reply via email to