Written by
Nirav MehtaEntrepreneur
I have been building and selling software since 2001, and running WordPress product companies since 2011. Icegram, StoreApps and Putler are my own - the plugins run on hundreds of thousands of sites, and the support tickets, refund requests and failed launches behind them are mine too. What I write here comes out of running those businesses, not out of researching them.
- Founder, Icegram - WordPress marketing plugins, 2011 to date
- Founder, StoreApps - WooCommerce extensions used on 100,000+ stores
- Founder, Putler - ecommerce analytics, 2012 to date
- Writing at mehtanirav.com since 2005
XLinkedInWordPress
daniel
Could you be more specific as what you are looking for. You certainly saw that the DataGrid is editable. Just set the editable attribute to the grid and the DataColumn you want to edit to true and you have in place text editing. You can also add custom cellRendederers. The Flex documentation describes all this. Note for Flex 1.5 they omitted to define that you may want to set the isCellEditor on the custom cell renderer.
JabbyPanda
Personally I think inline editing of Flex datagrid is not possible untill.... you enter the power of Flex 2 enterprise server..
Please, prove to me that I am wrong.
James Ward
Can't you just use editable=true in your DataGrid?
-James
Tariq Ahmed
Well a lot of the cellrenderer examples cover this topic, but the more tips the merrier.
Eg:
http://www.cflex.net/showfiledetails.cfm?ObjectID=108
http://www.cflex.net/showfiledetails.cfm?ObjectID=229
http://www.cflex.net/showfiledetails.cfm?objectID=295
http://members.cox.net/midian/tutorials/combobox.htm
http://www.richinternetapps.com/archives/000072.html
etc...
Tariq Ahmed
Actually another topic worth covering is validation. Documentation is fairly sketchy in this arena, things changed from Flex 1 to 1.5, and people go through a lot of trials and tribulations.
Nirav
Our reference point is Flex 2. Working on the beta now.
We can make the datagrid editable by setting editable = true. But the data does not go back to the backend. As a matter of fact, with bindings in place, sometimes the old value comes back in the cell as soon as you go out.
There is no RDBMSResolver in Flex like Flash. I believe Flex Enterprise Services allow trouble-free datagrid editing and saving back.
We have done something that saves edited data back to the server. It's not bullet proof, but it works.
So let us gather things around and put up a piece.
JabbyPanda
Yes, Nirav you have a point here, Flex 2 Enterprise services will work as you had expected.
John Stevens
In This link http://www.richinternetapps.com/archives/000072.html
Does anyone know how to get it to compile for Flex 2?