Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Hide checkbox in ListGrid

    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 }
    ...
    }
    Last edited by dmaranan; 9 Sep 2013, 10:53.
Working...
X