It appears that you are using the Syncfusion Angular ComboBox component with custom virtual scrolling logic to manage large datasets. The ComboBox component includes built-in support for virtualization, which is an efficient technique for rendering extensive lists while maintaining optimal performance.
With ComboBox virtualization, only a fixed number of DOM (Document Object Model) elements are created, ensuring efficient memory usage and rendering. When scrolling through the list, existing DOM elements are reused to display relevant data rather than generating new elements for each item. This recycling process is handled internally by the component.
By enabling the enableVirtualization option in the ComboBox, this feature is activated. During virtual scrolling, the data retrieved from the data source is based on the popup height and the calculated height of each list item. This ensures seamless performance even with large datasets.
For more details, refer to the following resources:
Additionally, regarding adding items to the popup of the ComboBox, you can use the
addItem method.