Results 1 to 2 of 2

Thread: [beta2] CheckBoxGroup improvements?

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    3
    Vote Rating
    0
      0  

    Default [beta2] CheckBoxGroup improvements?

    1. It would be nice to have a way to get check boxes associated with a CheckBoxGroup.
    Currently, we use setData("checks", List<CheckBox>) to save the association, that is already saved internally.

    2. What checkBoxGroup.getValue() is supposed to return? It seems that currently it returns the value of the first check box in the group. This is not too helpful.

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
      0  

    Default

    1. It would be nice to have a way to get check boxes associated with a CheckBoxGroup.
    Currently, we use setData("checks", List<CheckBox>) to save the association, that is already saved internally.
    CheckBoxGroup and RadioGroup now extend the new MultiField. MultiField has a getAll method that returns the child fields.

    Code:
    public class MultiField<F extends Field> extends Field {
    }
    
    public class CheckBoxGroup extends MultiField<CheckBox> {
    }
    
    public class RadioGroup extends MultiField<Radio> {
    }
    2. What checkBoxGroup.getValue() is supposed to return? It seems that currently it returns the value of the first check box in the group. This is not too helpful.
    Code:
      /**
       * Returns a list of all checked check boxes.
       */
      public Object getValue() {
      }
    Changes are in SVN.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •