Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Different hover for different items in radiogroupitem

$
0
0
BuildDate Wed Mar 05 15:52:00 IST 2014
Version 4.1p
SCVersionNumber v9.1p_2014-03-05


Team,
I am using following component :-
final RadioGroupItem radioBtn = new RadioGroupItem();
I set values in this using setValueMap(LinkedHashMap<>)

I am trying to show different hover message for different radio buttons in this radiogroupitem. I have tried:-
radioBtn.addItemHoverHandler(new ItemHoverHandler() {
@Override
public void onItemHover(ItemHoverEvent event) {
FormItem radioItem = event.getItem();
if (radioItem.getDisplayValue().equalsIgnoreCase("All fields")) {
radioItem.setPrompt("Msg 1");
}

else if (radioItem.getDisplayValue().equalsIgnoreCase("Parent level")) {
radioItem.setPrompt("Msg 2");
} else {
radioItem.setPrompt("Msg 3");
}
}
});

But my problem is it shows same message (the selected radio button ) for hover on any of the radio buttons.

Also if i try to set its width , it shows different widths at different points of hover.

I have attached screenshots for reference.
Can you help?

Attached Images
File Type: png pic1.png (6.8 KB)
File Type: png pic2.png (6.9 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles