This is a migrated thread and some comments may be shown as answers.

Multiselect large data set

1 Answer 617 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Emir Prcic
Top achievements
Rank 1
Emir Prcic asked on 16 Apr 2020, 12:51 PM

Hi,

I have implemented a Multiselect control with Filtering. It contains more then 10k items. My initial load is only 50 items as default items and all others need to be found over the filtering. 

When user filters and select various items and saves them everything works as expected. But when I load my edit page and patch values I see in tags only the values that are in the initial load (50 items). So if I have selected and saved one outside the first 50 it is not visible in edit mode. And this is also ok us I understand it per documentation: 

https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectComponent/#toc-value

All selected values which are not present in the source are ignored.

It works if I load all items in the multiselect but with 10k items its not very good for performance reasons. What would be a better approach.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 20 Apr 2020, 12:18 PM

Hi ,

The brute-force solution to be to load all items and use virtualization to lessen the performance impact. This is not ideal, as you've noted.

A better approach would be to include all values that are currently in use to the list of initial values. This may prove to be challenging, depending on the number of data sources in use. I'm afraid there's no built-in option to do this.

Best Regards,
T. Tsonev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
MultiSelect
Asked by
Emir Prcic
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or