-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4586208
By: snijim
Greetings,
I'm writing a simple app to make yes/no decisions on a data set. I'm currently pulling data from a db into a listbox.
What I would like to do is:
for each item in the list box, display a radio button next to it. Then, I can write methods to post the data to the database, and listeners go retrieve the decision (and who made it) and display it back on the list box.
Any way to derive and display a series of radio buttons based on the contents of a list box?
Sharif
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4589215
By: jebberwocky
Dear Sharif
Checkbox:
<listbox id="box" width="460px" multiple="true" checkmark="true">...
Radio:
<listbox id="box" width="460px" checkmark="true">....
Please refer to http://www.zkoss.org/zkdemo/userguide/ for live demo
//Jeff
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4589844
By: snijim
Jeff,
Thanks - that's what I ended up going with. What I originally had pictured was that every row would have yes/no radio buttons - then, have the clicking of the button drive the event to the database and refresh that row.
Basically, a listbox w/ multiple="true" and checkmark="true" will work, coupled with yes/no buttons to act on the selections.
Now I'm just working on figuring out how to retrieve the value of the selected items to stuff into an array and pass off to a method to update the database.
Does that make sense?
Sharif
Asked: 2007-10-24 15:26:44 +0800
Seen: 402 times
Last updated: Oct 26 '07