I want to dynamically change the datasource to fetch data based on what the user has typed. How can I do this? I tried to do it in the filtering event, but it's not showing the updated datasource items in the drop down.
Please see video of example that I want to copy. https://drive.google.com/file/d/1pm-bR26zkLhWuuK83wg5BiXp5RhexW7w/view?usp=sharing
|
this.tempData.push(emails[i]);
this.sportsData = this.tempData; |
Thank you, this works.
Hi,
Each time user types a character an HTTP request is created to fetch the data. However, this quickly results in at least a dozen http requests that are now no longer needed since the user has filtered the query further. How can I cancel previous XHR's on every key press to increase performance?