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

kendoComboBox change event not firing

3 Answers 919 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 03 Apr 2012, 06:29 PM
Attached is a sample page where I've instantiated a combobox and set the text so that the appropriate item is selected.  Problem is that it seems the control still thinks internally the first item is selected because if won't fire when selecting the first item, but will fire if i select any other item including the currently selected item.

Once the event fires from user selection, it seems to work correctly.

I've tried this with the .select function as well and get the same behavior.

Thanks

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Apr 2012, 09:46 AM
Hello Anthony,

 
Setting the text of the DropDownList does not prevent change event. If you need to prevent firing the change event on initial load you need to use value method:

$("#stateDropDown").data("kendoComboBox").value("Texas");

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Anthony
Top achievements
Rank 1
answered on 06 Apr 2012, 05:48 PM
thanks much for your reply.  I guess I through a red herring out there with the value vs. text.  The problem is reproducible using the .select() method as well.

My problem is not with it firing, but with the control not firing.  I also see same behavior with dropdownlist (as expected, since probably very similar  codebase.

I've attached a new example, it's concise and clear as to what the problem is.

Thanks much,

Tony
0
Georgi Krustev
Telerik team
answered on 11 Apr 2012, 04:10 PM
Hello Anthony,

 
I noticed that you are using CSS from Q1 2012 release of KendoUI, but the JS file is from Q3 2011 SP1 release. I will suggest you use the 2012.1 322 version of KendoUI. After I updated the test page everything works as expected. Also I will suggest you not include two jQuery files on one page.

Kind regards,
Georgi Krustev
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
Anthony
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or