0

get value of doublebox in listbox

asked 2012-09-05 18:26:43 +0800

kenshin gravatar image kenshin
18 1

updated 2012-09-05 18:33:34 +0800

how get value of doublebox in listbox?

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-09-12 12:37:10 +0800

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

Please explain your problem briefly so anyone can check what is the issue. thanks

link publish delete flag offensive edit

answered 2012-09-12 17:32:01 +0800

kenshin gravatar image kenshin
18 1

Thanks sjoshi,

I want to get the value of a doublebox that found inside a listbox

int index = 1;
Listitem li =  box_Lista.getItemAtIndex(index);  //box_Lista is my Listbox
double value_pay = li...... ?????

link publish delete flag offensive edit

answered 2012-09-13 01:49:44 +0800

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

I think You are looking something like this..In my case i have a Checkbox inside listcell..I used this code to get the value of Checkbox.

Listbox listbox = Listbox refreshListID = (Listbox) view.getFellow("queryWindow")
				.getFellow("refreshListID").getFellow("chosenLb");
// You can get ur way to get the listbox object i used getFollow you can use something else or ur way.
List<Listitem> iteams = listbox.getItems();

		Set<Listitem> set1 = new LinkedHashSet(iteams);
		 
		for (Listitem item : set1) {

			List<Component> com = item.getChildren();
			Checkbox chk = (Checkbox) com.get(0).getLastChild();
if (chk.isChecked()) {
//do domwthing
}


}
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-05 18:26:43 +0800

Seen: 174 times

Last updated: Sep 13 '12

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