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

Calling onchange handler when dropdown is created

2 Answers 269 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 01 Dec 2011, 01:43 PM
Hello,
When dropdownlist is just created, you may set initial value to it. I want to handle "change" event from different control. Is there a way to fire change event when dropdownlist initial value is set?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 02 Dec 2011, 03:54 PM
Hi Dmitry,

 
One possible option is to trigger change manually when the combobox is initialized:

$("#combo").data("kendoComboBox").trigger("change");

If you need to raise the change on blur, then you will need to clear the _old property:
$("#combo").data("kendoComboBox")._old = undefined;

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!
0
Dmitry
Top achievements
Rank 1
answered on 05 Dec 2011, 02:46 PM
Thank  you very much, works fine
Tags
DropDownList
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or