-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Let's say i have a comboBox and i enter manually the comboitem, like this:
<combobox sclass="mycombo" readonly="true">
<comboitem label="A"
description="Price Code" value="A" />
<comboitem label="B"
description="Destination code" value="B" />
</combobox>
in MVC i could easily assign id into the combobox and get the value
if(combo1.getValue()== "A"){
//some code here
}
but in MVVM, i don't know how to do it.
Thanks,
Klepon
Here are you can check zk-combobox-with-selectoption
make a variable in viewmodel for example myValue, to do setter & getter
then add value="@bind(vm.myValue)"
Asked: 2013-07-15 05:58:27 +0800
Seen: 24 times
Last updated: Jul 15 '13
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]