Search code examples
kendo-uidatasourceextenddatatextfield

How can extend AutoComplete to change dataSource and dataTextField dynamically in kendo?


how change datasource and dataTextField with extent autocomplete kendo when user enter number or text ? for example. I want when user enter id show name in dropdown list and when enter name show name .


Solution

  • You can use the filtering event, check the incoming filter, and based on its type, programmatically filter the dataSource:

    Example