If you are doing a lot of this, there is a decent approach but it's very
long winded...

 

Override your DG so that when you add to the dataprovider (or when items
are added to the DP) the objects in the DP get wrapped in a DGAware
object. This object provides access to the wrapped object and exposes
the relevant fields for checkboxes (isEditedYellow, isEditedBlue, etc).

 

This keeps your underlying data object ignorant of any renderer related
fields, and still allows you to set up the state of the renderer in set
data.

 

This is a fair bit of work mind...

Reply via email to