vaadin / grid-renderers-collection-addon

Collection of Grid Renderers (Vaadin7)
Apache License 2.0
4 stars 16 forks source link

BooleanSwitchRenderer setReadonly #22

Closed koapost closed 7 years ago

koapost commented 7 years ago

I use BooleanSwitchRenderer lie this

records.addColumn(ApplicationRecordDto::getM1)
                .setRenderer(new BooleanSwitchRenderer((dto, value) -> ((ApplicationRecordDto) dto).setM1((Boolean) value)))
                .setCaption("1");

And later on I want to make it read only records.getColumns().subList(1, records.getColumns().size()).forEach(value -> ((BooleanSwitchRenderer)value.getRenderer()).setReadOnly(flag));

but it doesn't seam to work!

TatuLund commented 7 years ago

Yes, I can replicate this issue.

TatuLund commented 7 years ago

2.2.1 released in directory