JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › ComboBox › Filter by Ajax Calls › Reply To: Filter by Ajax Calls
February 21, 2023 at 5:54 am
#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/