0

Reteriving selected value from a combo box

asked 2006-01-04 13:38:04 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3504833

By: nobody

As we get the selected values from a radiogroup using self.selectedItem,how come we get the selected value from a combo box or from a list box

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-01-04 14:49:50 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3504991

By: tomyeh

A listbox has a method with the same name, selectedItem. For listboxes that allow multiple selections, you could use selectedItems.

Combobox is different from listbox or radiogroup. Rather, it is much more like a textbox with memory. In other word, it doesn't tell developers what item being selected. Rather, use the value attribute to retrieve its content.



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: 2006-01-04 13:38:04 +0800

Seen: 1,115 times

Last updated: Jan 04 '06

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