Announcement

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

    RadioGroupItem valueIcons and no value

    Im wondering if its possible to use radioGroupItem.setValueIcons().
    I guess this should work, but it doesnt:

    Code:
    LinkedHashMap<String, String> values = new LinkedHashMap<String, String>();
    values.put("0", "Place");
    values.put("1", "Event");
    radioGroupItem = new RadioGroupItem("type", "Type");
    radioGroupItem.setValueMap(values);
    radioGroupItem.setImageURLPrefix("nere/type_");
    radioGroupItem.setImageURLSuffix(".png");
    LinkedHashMap<String, String> valueIcons = new LinkedHashMap<String, String>();
    valueIcons.put("0", "place");
    valueIcons.put("1", "event");
    radioGroupItem.setValueIcons(valueIcons);
    Also, how, if possible, to unselect all the radio values?
    Once radioGroupItem.setValue("1") is called, there's a way to come back at initial radioGroupItem draw status, where no option is selected?

    I tried it in SmartGWT 2.4 and 6/5 night build.

    #2
    try radioGroupItem.clearValue();

    Comment


      #3
      and radioGroupItem.redraw(); afterwards

      Comment

      Working...
      X