Calling onchange handler when dropdown is created

3 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 01 Dec 2011 Link to this post

    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. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 02 Dec 2011 Link to this post

    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!
  3. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 05 Dec 2011 Link to this post

    Thank  you very much, works fine
Back to Top