Title: Message
Hmm, I think this might be though to do,
its an interesting use-case. I think maybe youre going to need
to do something custom. Like give each column a cell renderer that looks at a
certain property on the item that its 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 renderers setValue function to be called which you
can then use to make the switch as appropriate. Not easy but I dont
have a better suggestion for you at the moment, maybe someone else will.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Griffin, Michael (FEB)
Sent: Friday, March 03, 2006 10:35
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 1.5 datagrid
- toggle cell editable property
Working with the 1.5 grid and I have a
columnthat hasa 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
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.