Improving Combobox Performance with Large Data Sets #2418
-
We are using this library in our project, and it has been really great overall. However, I've noticed a performance issue with the Combobox component on some pages. For example, we use the Combobox to display a collection of skills, which contains more than 200 items. Rendering this Combobox takes approximately 1 to 1.5 seconds. In comparison, using the same scenario with the Radzen library, the rendering takes only about 100 milliseconds. I suspect that Radzen might be using virtualization. Is there a way to speed up the Combobox rendering in this library? We prefer not to switch to another library because we need to maintain the Fluent UI design. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could use the FluentAutocomplete component. It's more adapted to this cases. |
Beta Was this translation helpful? Give feedback.
Yes, you can customize the selected items using
SelectedOptionTemplate
. And you can setMaximumSelectedOptions="1"
with the advantage to display a message when the use try to select another item.You can take inspiration from the second example (demo/doc site) to develop your project.