#104415
Steven Peterson
Participant

Hi,

As my colleague said if you want to use the dataSource function to access the query, it should be set in the ngAfterViewInit because the combo box must have been initialized. To prepopulate the dropdown with some values you can set a static dataSource which will be later changed.

An example here: https://stackblitz.com/edit/github-eefp9l-ocobvf?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html

If this does not help, please do not hesitate to contact us and explain further!

Best Regards,
Steven Peterson

Smart UI Team
https://www.htmlelements.com/