Hi,
Is there any working example for the igCombo or any other control for that matter, with data that comes from a REST end point (or any other late data that need to be rebind).I cant seem to make it work.
If I use any method like the $('#id').igCombo('dataBind') when I get the data, I always get the "cannot call methods on igCombo prior to initialization" error.I tried to re initialize the control like $('#id').igCombo(options) - but again, it does not work/
any help will be nice
Hello Amos,
Thank you for contacting us.
Yes, there is such a sample - http://www.igniteui.com/combo/load-on-demand.
The error you get when you call databind is because you do this before the combo is initialized. You could attach to rendered event and do some logic there, if you want to be after initialization - http://www.igniteui.com/help/api/2016.2/ui.igCombo#events:rendered.
If this does not help, you could send me a working isolated sample so I could investigate. You could make a JSFiddle if it convenient.
I am looking forward to hearing from you.
Hi,Thanks for the response.
I uploaded files to show my case.the files are taken from the Angular2 sample page on github.
these two file are the igComboTemplate.html file - where I just gave the control an id, and the second file the the app.ts, where I changed the code so the data will be fetched with a 3 seconds delay, to mock the data fetching from the server.so i order to get the sample going, you will need to get the "igniteui-angular2-master" from https://github.com/IgniteUI/igniteui-angular2and replace these two files in the igCombo directory.
thanks in advance