Closed koapost closed 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));
records.getColumns().subList(1, records.getColumns().size()).forEach(value -> ((BooleanSwitchRenderer)value.getRenderer()).setReadOnly(flag));
but it doesn't seam to work!
Yes, I can replicate this issue.
2.2.1 released in directory
I use BooleanSwitchRenderer lie this
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!