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

when Change event fires and when it doesn't

1 Answer 173 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 09 Jan 2014, 07:45 AM
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? 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Jan 2014, 10:20 AM
Hello Jacques,

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

http://demos.kendoui.com/web/autocomplete/events.html

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.

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