Binding 2 Combobox on Listbox

asked 2016-10-15 15:03:28 +0800

mmenichetti gravatar image mmenichetti

I have in a listbox 2 combobox, the list data of second combobox depend on what i select on first and on every row of listbox, the second combobox has its own listmodel.

What is the best approach

Thank's and sorry for my bad English

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-10-18 07:35:04 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9

Normally I would suggest creating a ListModel in the VM to bind with a combobox.
In this case, we should use the autoboxing of ZK to make it ourself a little easier.(as selecteditem is in the listmodel)

In this fiddle you see an example of dependend comboboxes : http://zkfiddle.org/sample/33nfnf1/1-MVVM-dependent-comboboxes

I hope you can make some idea's with it, otherwise leave some comment.


link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2016-10-15 15:03:28 +0800

Seen: 24 times

Last updated: Oct 18 '16

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