truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

Trigger options when initialization #193

Open rosaricla opened 4 years ago

rosaricla commented 4 years ago

Hi,

I am sending my currently selected items along with my request throught the server. The problem here is that after refresh the page, the current selected option are not loaded unless I start to write in the search boxes.

It is any way to initializate the loading of the options when the page is loaded and not when the search event start? So build the list of options even when there is no search.

Now the event to bind on the search input element to fire a request is keyup, but I want to bind on the search input element when the page is loaded.

I have tried with the option: bindEvent: "change click keyup". But it is still not working

Thank you

benes-jakub commented 3 years ago

Hi, Did you find any solution? I'm trying to solve same problem.

Thank you