0

Select for Combobox

asked 2006-11-21 13:57:26 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: lou1

I need to know th Id of the selected comboitem in a combobox. But the getSelectedItem or onSelect event doesn't exist.
do you know how can i do ?

Maybe an onSelect event could be added to the Combobox component.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-11-22 01:57:38 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: henrichen

Please post to Feature Request.

/henri

link publish delete flag offensive edit

answered 2013-04-13 16:31:21 +0800

gercibert gravatar image gercibert
9 1

updated 2013-04-13 16:32:35 +0800

Hello, Please Help me Please

I like selected Item in ComboBox but have problem.

////zul. <combobox id="cboDepartament" autodrop="true" mold="rounded" model="@{idWin$composer.ListDepartament}" selecteditem="@{idWin$composer.formDepartamentSelected}"> <comboitem self="@{each='FormDepartament'}" label="@{FormDepartament.nameDepartament}" value="@{FormDepartament.codDepartament}"/> </combobox>

.java

recovery departament for country selected

public void departamentSelected(){ cboDepartament.getItems().clear(); cboDepartament.getChildren().clear(); cboDepartament.setText(""); formDepartamentSelected = null; getFormListDepartament(); //recovery list departament //Ok ListModelList lm3 = new ListModelList(formListDepartament); //Ok cboDepartamento.setModel(lm3); //OK

//recovery value of codDepartament the listItem selected formDepartamentSelected = listGridSelect.getcodDepartament()

but not position in ComboBox in .zul getItem() = null How recovery in .zul the ItemSelected if I not selected Item in .zul but have the value

}

Please help me. thank you

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-11-21 13:57:26 +0800

Seen: 148 times

Last updated: Apr 13 '13

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