0

Event on checkbox of Listbox

asked 2010-08-17 09:48:14 +0800

varunach gravatar image varunach
6

Hi..

what do i do if i want to fire an event on checking the checkbox in a listbox?

The ON_SELECT event does not serve my purpose.

Also how do i find out whether the checkbox for a listitem is checked?

Thanks,

Varun

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-08-18 00:04:56 +0800

rohitjain gravatar image rohitjain
6 1

Hi Vaurn,

Use ON_CHANGE event instead of ON_SELECT. ON_CHANGE event will fire on checking or unchecking of list item.

For identifying whether the checkbox for a listitem is checked
use this
Iterator lItr = listboxId.getSelectedItems().iterator();


Thanks,
Rohit Jain

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-08-17 09:48:14 +0800

Seen: 510 times

Last updated: Aug 18 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More