Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Hide checkbox in ListGrid

$
0
0
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 }
...
}


Viewing all articles
Browse latest Browse all 4756

Trending Articles