1

I have a listbox ,which have two values value1 and value 2 ..

Now my listbox values got change programatically (I dont change the values Manually)

I want to get a prompt prompt whenever a value get changes / index get changed, inside my listbox

             ListBox listBox = new LisBox();

if i use

             listBox.addClickHandler 

or

             listBox.addChangeListener

or listBox.addChangeEvent

They all only shows me a prompt when i manually change my listbox selected Index.But how will i get a prompt when my listbox selectedIndex changed programatically

Thanks

junaidp
  • 10,801
  • 29
  • 89
  • 137

1 Answers1

0

I am assuming that you are using

setSelectedIndex

The javadoc says explicitly states that it will not send an event. You could overwrite setSelectedIndex and send your own event. A good explaination of doing so can be found here.

Community
  • 1
  • 1
Martin
  • 584
  • 3
  • 12