here is the test code
SmartGWT:1.2
GWT:1.7
Is it supposed that ListGrid.getFields() will not return hidden fields?
Code:
ListGrid grid = new ListGrid(); // hidden field ListGridField productIdField = new ListGridField("productId", "Product ID"); productIdField.setType(ListGridFieldType.TEXT); productIdField.setHidden(Boolean.TRUE); ListGridField nameField = new ListGridField("productName", "Product Name"); nameField.setType(ListGridFieldType.TEXT); nameField.setAlign(Alignment.CENTER); nameField.setCellAlign(Alignment.LEFT); grid.setFields(productIdField, nameField); /* in a hanlder, call getFields() */ Fields[] fields = grid.getFields(); /* fields.length will be 1 not expected 2, the hidden field is NOT in the fields array */
GWT:1.7
Is it supposed that ListGrid.getFields() will not return hidden fields?
Comment