0

Problem with combobox

asked 2014-11-25 10:12:17 +0800

wigberto gravatar image wigberto
52 4

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.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-25 10:17:15 +0800

wigberto gravatar image wigberto
52 4

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>
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

Follow
1 follower

RSS

Stats

Asked: 2014-11-25 10:12:17 +0800

Seen: 7 times

Last updated: Nov 25 '14

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