-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a list of types employee and in "form" of which one of the fields is the type of employee. As I can do to make the selected item in the list is the data that has the field. In the example code, I get selected item type, but when I select some data from the combo I get object "EmployeeType@12131"
<combobox id="comboEmployeeType"
value="@bind(fx.employeeType)"
model="@bind(vm.employeeTypeList)"
selectedItem="@bind(vm.selectedEmployeeType)" tabindex="1"
readonly="true" width="150px" />
Thank you.
Solution:
<combobox model="@bind(vm.employeeTypeList)"
selectedItem="@bind(vm.selectedEmployeeType)" readonly="true"
width="150px" value="@bind(fx.employeeType)">
<template name="model"
var="employeeTypeCode">
<comboitem class="form-control"
label="@bind(employeeTypeCode.code)">
</comboitem>
</template>
</combobox>
Asked: 2014-11-25 10:12:17 +0800
Seen: 7 times
Last updated: Nov 25 '14