Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatAutocompleteList with Async Data / Large Data Sets #687

Closed
groogiam opened this issue Aug 13, 2020 · 2 comments
Closed

MatAutocompleteList with Async Data / Large Data Sets #687

groogiam opened this issue Aug 13, 2020 · 2 comments
Labels
question Further information is requested

Comments

@groogiam
Copy link

Describe the question
The MatAutocompleteList component does not seem to support async data loads from the server very effectively. It seems like you use OnTextChanged to initiate a call to the server and replace the items collection but this gets very clunky when the server performs a complex search over multiple fields and returns a complex object. The returned objects gets filtered again based on an arbitrary string selector which is really not necessary for data filtered on the server. It seems like there should be away to disable the inbuilt filtering and just use the results returned directly from the server. Is there any way to do this with the current control and if not are there plans to include more functionality around server filtering and potentially a virtual scroll for this component? I think these would really make this component much more usable for filtering larger datasets.

@groogiam groogiam added the question Further information is requested label Aug 13, 2020
@sandrohanea
Copy link
Contributor

Hi,
Indeed, the current MatAutocompleteList wasn't designed to work with async data / large data sets but the MatAutocomplete component should be:
please, take a look at #550

Thanks

@groogiam
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants