avallete / ag-grid-autocomplete-editor

Quick implementation of autocompletion into ag-Grid cell using autocompleter package.
MIT License
49 stars 25 forks source link

Feature Request: Batch rendering for autocomplete for large set of data #82

Closed bgovi closed 4 years ago

bgovi commented 4 years ago

If the list has more than about 500 entries the rendering hangs (It will eventual show up, but a bit laggy). Large drop downs often happen when dealing with lists of people. Is it possible to render in groups. Like only showing the first hundred then more will be rendered if the user scrolls down near bottom.

avallete commented 4 years ago

Not sure to totally understand the request here, the 500+ entries is before or after the 'filtering' part of the auto-completion ?

If you have 500+ results on an 'autocomplete search', does implementing a 'infinite scrolling' logic to handle very big matching results is really worthy when, I think, most of the users will type other letters into the search text field to narrow down the possibility, and probably very few will start scrolling into the 500+ list.

Couldn't that situation may be handled into the fetch attribute to limit the numbers of results to a pre-determined acceptable numbers for your use case and trim off the rest of the results ?

Maybe setting up the minLength attribute to an higher value may help as well.

bgovi commented 4 years ago

Yeah. The max out probably makes sense. Thanks.