I have the requirement that ComboBoxes need to load their data lazily, which i did by setting the datasource to server-bound data and configure the combobox to autoBind=false. So the combobox fetches the data only when opened for the first time. However, the initially selected value is known in advance, so i create the DOM element for the combobox accordingly (meaning the <select> already has an <option> for the initially selected item).
But: In some cases, i need to "revert" a combobox that has already fetched the data to the state before fetching, i.e. when i open the combobox after "reverting" it, it should behave like it was never opened before, which means it (re)fetches the data.
See this jsbin for details: http://jsbin.com/wetarafo/1/edit
Is there any way to do this?
But: In some cases, i need to "revert" a combobox that has already fetched the data to the state before fetching, i.e. when i open the combobox after "reverting" it, it should behave like it was never opened before, which means it (re)fetches the data.
See this jsbin for details: http://jsbin.com/wetarafo/1/edit
Is there any way to do this?