I want to set new items and the selected item, in JS.
the following code works, but opens the window with the list of the combobox.
var currencies ="EUR-USD";
var n = currencies.split("-");
var comboPrem = $find("comboPremium");
comboPrem._elements["List"].innerHtml = '';
comboPrem.loadItems(n[0]);
comboPrem.loadItems(n[1]);
comboPrem.set_currentValue(n[0],false);
Hello drpoalim,
This is the only way we have implemented to invoke loading items on some filter criteria. If you find any issues in it do not hesitate to report them.
Thanks.
It works.
Is there a simpler way then what I used, to load a new list to the control in JS?
Hello drpoalim,Can you try when you invoke the loading to use the second argument to be false. It is used to indicate if the dropdown should be opened or not. Please refer to
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0?page=WebDropDown~Infragistics.Web.UI.WebDropDown~loadItems.html