Multi-Select with Ajax AND updating data - NOT WORKING

Hi all,

I have the following scenario:

Two SELECT2 select boxes “A” and “B”. Both show the same selected value and options.

They consume an AJAX datasource that is queried by the term specified in the SELECT2 search box.

When using select box A the options are updated with data received by AJAX.

I need to update the options on select box B.

I need to set the selected value of B to the same value that is selected in A.

I can’t get it working.

I tried a custom data adapter but in this case the AJAX call is not executed.

I tried to add a query method to the data adapter. This works but the options of B are not updated.

Any ideas or examples?

Regards
Ingo

Second problem:

When I use AJAX in the SELECT2 intialization ("jQuery(’#selectbox’).select2({ajax:…, data:…}) the initial provided “data” options are not used.