Announcement

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

    ListGrid.getFields() not return hidden fields

    here is the test code
    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 */
    SmartGWT:1.2
    GWT:1.7

    Is it supposed that ListGrid.getFields() will not return hidden fields?

    #2
    Anyone? I also need to get all fields including the hidden ones.

    Comment


      #3
      No one has anything to say about this?

      I have the same issue except that I'm using getField("name") - it returns null.

      :-(

      PS: I'm using SmartGWT 3.1 Power Edition and GWT 2.5
      Last edited by helenov; 26 Jul 2013, 11:55. Reason: including version information

      Comment

      Working...
      X