Clearing cell decorations in editable table cell [message #1507228] |
Thu, 11 December 2014 12:30 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
We have an editable table. One of the editable columns is of type AbstractColumn<TriState> and we use execDecorateCell() to set icons representing the three possible states (unchecked, checked, indeterminate).
Furthermore, we have overwritten execPrepareEdit() to return a TriStateField (a custom control offering a checkbox which toggles through three states) so the user can change these values.
Functionally, this works, we can click in the cell, get the tristate field, can modify the value which then gets written back to the tristate value and the cell decoration is updated.
However, the cell decoration is still visible when the tristate field is drawn, which is confusing and ugly.
Is there any way to clear the cell decoration in execPrepareEdit()? We've tried setting the icondId on the cell to null. Sadly, this does not clear the icon, instead it makes the input field disappear (probably because setIconId() triggers a call to execDecorateCell()).
Is there any way to do this?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04794 seconds