Title: Message

Hmm, I think this might be though to do, it’s an interesting use-case.  I think maybe you’re going to need to do something custom.  Like give each column a cell renderer that looks at a certain property on the item that it’s viewing and determines if it should show the editor based on that property.  Then the button would update that property (using dg.setPropertiesAt or dg.dataProvider.editField) which would then cause the cell renderer’s setValue function to be called which you can then use to make the switch as appropriate.  Not easy but I don’t have a better suggestion for you at the moment, maybe someone else will.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Griffin, Michael (FEB)
Sent: Friday, March 03, 2006 10:35 AM
To: [email protected]
Subject: [flexcoders] 1.5 datagrid - toggle cell editable property

 

Working with the 1.5 grid and I have a column that has a button in each row that has to make just the cells in that row editable when clicked.  As a starting point I assume I have to have the grids editable property set to true, and the rows editable properties set to false initially. 

 

Does anyone have the syntax handy to target the editable property of all the cells in a row, or another approach that can be used to target the properties of a rows cells?  I can get at the column, but so far not the individual cell in the column and I'm assuming to get the effect that I'm looking for I need to loop through all the columns setting the editable property for the cell in the row that was clicked.

 

Any ideas or guidance would be appreciated.

 

Mike




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




YAHOO! GROUPS LINKS




Reply via email to