I can't add a new item in client side...
Load the webdropDown..
var cboFormat = $find("<%= WebDropDown_Checkbox.ClientID %>"); var comboItem = new ???
Please, help..
Even i have a similar problem, when i followed the example i am not able to load more than one item. Is there a way to add more than one item in a loop?
Hi,
http://samples.infragistics.com => 2009.1 => WebDropDown => Client Events sample
function addItem(e) { var combo = $find('<%= myDropDown.ClientID %>'); var textbox = $get("<%=txtNewItem.ClientID %>"); if (textbox.value != "") { var item = combo.get_items().createItem(); item.set_text(textbox.value); item.set_value(textbox.value); combo.get_items().add(item); } }
Hope it helps,
Angel