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

[Feature] Progressive loading in dropdown/select widget #4444

Closed
sharat87 opened this issue May 12, 2021 · 8 comments
Closed

[Feature] Progressive loading in dropdown/select widget #4444

sharat87 opened this issue May 12, 2021 · 8 comments
Assignees
Labels
Community Reported issues reported by community members Enhancement New feature or request Needs Triaging Needs attention from maintainers to triage Select Widget Select or dropdown widget Widgets Product This label groups issues related to widgets

Comments

@sharat87
Copy link
Member

Currently, the select widget loads and shows all options given to it. It can be populated by the response from an API action, but if there's a lot of items in the dropdown, it can get slow to even load all of those items from the API action. There should be a way to load just a few, and then load more as the user scrolls down for more, or perhaps when they filter for something specific inside the dropdown.

@sharat87 sharat87 added the Community Reported issues reported by community members label May 12, 2021
@kritid11
Copy link

I have a form where I need input from the dropdown which is getting data from the server. If the data is too much, It might take time to load all the contents in one go. So If we can keep loading the data in chunks, as and when the user scrolls down, would help.
I am already using the table widget and selected row feature for the update functionality. But while creating a record, I need to show all the data in the dropdown.

@Nikhil-Nandagopal Nikhil-Nandagopal added Select Widget Select or dropdown widget Enhancement New feature or request labels May 12, 2021
@Nikhil-Nandagopal Nikhil-Nandagopal removed their assignment May 12, 2021
@github-actions github-actions bot added Widgets Product This label groups issues related to widgets UI Building Pod labels May 12, 2021
@somangshu somangshu added the Needs Triaging Needs attention from maintainers to triage label Jun 11, 2021
@somangshu
Copy link
Contributor

@Tooluloope kindly identify a solution around this

@Tooluloope
Copy link
Contributor

Tooluloope commented Jul 1, 2021

@Tooluloope kindly identify a solution around this

I currently, use a Virtual scrolling feature enabled on the RC-Select to handle this performance issue.

Although this still needs a deep thought, because there might be times you'd want to access something like Multiselect1.SelectedOptionValues[1000] or even do some filtering or some random JS logic on the options which might require you having all the data or options to be able to run such logic

@Tooluloope
Copy link
Contributor

Tooluloope commented Jul 1, 2021

Also @somangshu isn't this the same as #5018, since they both have to be server rendered to filter or load options

@Nikhil-Nandagopal
Copy link
Contributor

+1 Maybe the dropdown isn't the best widget for this. Should we do a typeahead widget instead?

@somangshu
Copy link
Contributor

somangshu commented Jul 2, 2021

@Tooluloope @Nikhil-Nandagopal this is related to virtualisation of the list and infinite loading. The filtering of list feature is raised inside #5018 where the discussion also points to an autocomplete/typeahead widget for async loading.

@Nikhil-Nandagopal
Copy link
Contributor

@somangshu Technically you are right but my question is should we even support infinite scrolling in a dropdown. I am not sure if dropdowns typically behave that way and the right UX pattern here maybe to use a typeahead

@somangshu
Copy link
Contributor

Closing this in favour of #5018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Reported issues reported by community members Enhancement New feature or request Needs Triaging Needs attention from maintainers to triage Select Widget Select or dropdown widget Widgets Product This label groups issues related to widgets
Projects
None yet
Development

No branches or pull requests

6 participants