Announcement

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

    Set a different Prompt based on the RadioGroupItem Value hovered upon

    Hi

    I am trying to obtain a prompt when I hover over the values of a RadioGroupItem. I expect the promt to change based on which RadioGroupItem Value I hover over. This is something similar to the example in the SmartGWTShowcase under Forms>Hovers, only difference being i am tryin to achieve this for a RadioGroupItem rather than a ComboBoxItem.

    Hovever the addItemHoverHandler doesnt seem to be responding. Even something simple like the code below doesnt work

    Code:
    final RadioGroupItem radioGroupItem = new RadioGroupItem();
    radioGroupItem.setName("radioItem");
    radioGroupItem.setTitle("Radio Type");
    radioGroupItem.setValueMap("option1", "option2");
    radioGroupItem.addItemHoverHandler(new ItemHoverHandler() {
                public void onItemHover(ItemHoverEvent itemHoverEvent) {
                  SC.say("hello");
                }
            });
    I have tried this on Firefox 6.01 as well as chrome and it doesnt seem to work.
    Is there a different way to achieve the same feature?

    #2
    As of the last few days, nightly builds in the 3.0p and 3.1d branches include a new method, RadioGroupItem.setValueHoverFormatter(), which should do what you need, but let us know if it doesn't.

    Comment


      #3
      The RadioGroupItem.setValueHoverFormatter() method still does not work. Please help.

      Comment

      Working...
      X