Initialize with some options but use AJAX as the data source



I have a Select2 which gets it’s data from an AJAX call but I want it to be initialized with some options.

I have been trying using this: but it only loads one option, I would like to load multiple.

Is this possible? Do I need to somehow use a data adapter?




Have you tried simply repeating the procedure to add the remaining initial items? In other words, add one item at a time, and repeat as many times as you need.