BoldSignA modern eSignature application with affordable pricing.
Sign up today for unlimited document usage!
Hi,I want to add some items in a listbox programmatically in the way provided in the docs, but the call to getInstance fails with this error :
ERROR TypeError: Cannot read properties of null (reading 'ej2_instances')at getInstance (ej2-base.es5.js:450:13)
This is the code:
I also tried to reference the listbox by ViewChild, but it looks like the listBoxObj1 is not initialized, is always undefined:
Any ideas how to solve this?
We have attempted to
replicate the issue on our end but were unable to do so. We have prepared a
sample to show how ListBox component works correctly on our end.
Sample link: https://stackblitz.com/edit/angular-ckekaa?file=src%2Fapp.component.ts
Could you please share the reproducible sample or
replicate the issue in our sample? and share the Syncfusion package version you
are using. Based on that, we will check and provide you with a better solution