I am using the abp.io Select2 auto-complete-select. How do I refresh the "available options" data from the Select2 box without clearing out any selected options?
I have a use case where the list of available options changes **after ** the user has clicked the drop-down to retrieve the list of available options (i.e. they can create a new item while on the screen - so I need to refresh the data (available options) so the new item is there - but I need to retain any selected items).
<select id="TagsLookup" asp-for="Message.TagIds" class="auto-complete-select" multiple="multiple" style="width: 100%" data-autocomplete-api-url="/api/mymodule/messages/item-lookup" data-autocomplete-display-property="displayName" data-autocomplete-value-property="id" data-autocomplete-items-property="items" data-autocomplete-filter-param-name="filter"> </select>