when Change event fires and when it doesn't

2 posts, 0 answers
  1. Jacques
    Jacques avatar
    135 posts
    Member since:
    Jun 2007

    Posted 09 Jan 2014 Link to this post

    I'm using an autocomplete control in a grid, which works well.
    When the user types in the field the list is populated from an ajax call, works no problem. 
    When one of the list options are selected it updates the grid values in the same row. 

    Scenario: If the user clears the autocomplete control by highlighting the text, pressing delete and then tabbing out of the field we need to clear the current grid row values. 
    ALSO, when the user selects a valid value we're adding a new row below the current one for the user to use. (I.e. dynamically growing the grid). 

    So, we bind to the select event and on a valid selection we add the new row. This works.
    We added a change event to the autocomplete control and it fires in the above mentioned scenario, but if the user selects a valid option, then highlights the text, types in something else and then selects an option from the resulting list, the select event fires, but not the change event. 

    Why would that be? 
  2. Dimo
    Dimo avatar
    8318 posts

    Posted 10 Jan 2014 Link to this post

    Hello Jacques,

    Do you observe the described problem in our "Events" online demo?


    If yes, please provide exact step-by-step instructions, as I was not able to reproduce it, based on the above information. If the change event is fired as expected, please double-check and debug that it is not fired in your scenario and then provide a runnable example including the Grid with some dummy data.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top