This is a migrated thread and some comments may be shown as answers.

Cant bind comboBox to change event using MVVM

3 Answers 220 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 2
Jay asked on 18 Apr 2012, 11:41 PM
I have a combobox who's html source is below.  When I try to bind my viewModel using MVVM, the following message is displayed: "change binding is not supported by the select element".  The funny thing is that this works fine on the 1012.1.229 beta, but does not work when I switch to 2012.1.335 commercial release.  Can anyone help with this?

HTML Code:
<select id="tePriority" class="tePriority editControl autoCommit" data-bind="change: onPriorityChange">
<asp:PlaceHolder ID="phPriority" runat="server"></asp:PlaceHolder></select>

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Apr 2012, 07:48 AM
Hello Jay,

In order to bind the select's change event, you should use the events binding.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jay
Top achievements
Rank 2
answered on 19 Apr 2012, 05:26 PM
ok, I changed the code as seen below, and I still get the same error message.

<select id="tePriority" class="tePriority editControl autoCommit" data-bind="events: { change: onPriorityChange }">
<asp:PlaceHolder ID="phPriority" runat="server"></asp:PlaceHolder></select>
0
Rosen
Telerik team
answered on 20 Apr 2012, 06:56 AM
Hello Jay,

I'm afraid that I'm unable to observe such behavior locally. Please check the following jsFiddle for more details:


Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Jay
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Jay
Top achievements
Rank 2
Share this question
or