Is there a way to hide a checkbox in a ListGrid depending on the record?
Code:
checkBoxField = new ListGridField(); checkBoxField.setType(ListGridFieldType.BOOLEAN); checkBoxField.setCanEdit(true); checkBoxField.setTitle("Import"); checkBoxField.setCellAlign(Alignment.CENTER); checkBoxField.setWidth(100); ... ... public void fetchGridData() { this.fetchData(getRecordCriteria(), new DSCallback() { @Override public void execute(DSResponse response, Object rawData, DSRequest request) { if (response.getStatus() == RPCResponse.STATUS_SUCCESS) { final Record[] records = response.getData(); if (records != null && records.length > 0) { for (Record record : records) { if(some condition) { //hide checkbox } ... }