|
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: 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
|
Title: Message

