0

¡How Get Value Of Doublebox Inside A Listbox? Urgent!!!! Please!!!

asked 2012-09-08 21:09:02 +0800

kenshin gravatar image kenshin
18 1

¡How Get Value Of Doublebox Inside A Listbox? Urgent!!!! Please!!!

int index = 1;
Listitem li =  box_Lista.getItemAtIndex(index);
double value_pay = li...... ?????

Please, Thank's.

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2012-09-08 23:56:19 +0800

rdgrimes gravatar image rdgrimes
735 7

Ideally, you should bind a list/map/array/set to your listbox model, and your doublebox should in turn be bound to an item attribute. In this way, you can iterate through the model rather than trying to pull the value from the component itself.

Btw, a lot of developers won't respond when someone posts "Urgent!!!". Just an FYI meant to help you out in the future.

link publish delete flag offensive edit

answered 2012-09-09 13:17:00 +0800

kenshin gravatar image kenshin
18 1

Thanks rdgrimes,

how i can bind a list to my listbox model?
how i can iterate through the model?

link publish delete flag offensive edit

answered 2012-09-15 07:49:24 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi you can do like this..I have Checkbox inside my ListCell i used this code you have to do same thing to get the doublebox.

for (Listitem item : set1) {

			List<Component> com = item.getChildren();
			Checkbox chk = (Checkbox) com.get(0).getLastChild();
			Data data = item.getValue();
			if (chk.isChecked()) {
				_orderBy.append(data.getValue() + " ASC ");
				_orderBy.append(",");
			} else if (!chk.isChecked()) {
				_orderBy.append(data.getValue() + " DESC ");
				_orderBy.append(",");
			}

		} 

Thanks

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: 2012-09-08 21:09:02 +0800

Seen: 167 times

Last updated: Sep 15 '12

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