function
DropDownOpening(sender, e)
{
count = 0;
count = sender._itemCollection.getLength();
sender._itemCollection.remove(sender._itemCollection.getItem(3));
sender._itemCollection.remove(sender._itemCollection.getItem(2));
sender._itemCollection.remove(sender._itemCollection.getItem(1));
sender._itemCollection.remove(sender._itemCollection.getItem(0));
itm = sender._itemCollection.createItem()
itm.set_text(
);
itm.set_value(
items are not removed properly, i need to add items when dropdown opening
I would not advise to use the above code, because for every adding and removing of an item programatically from the client-side, an automatic ASYNC postback is made, in order to syncronize the server-side collection as well.
What exactly is your use case? Why do you need to add (or remove, as it is shown above) items on the client, when the dropdown is opening?
Thanks,
Angel
please reffer
http://forums.infragistics.com/forums/t/39101.aspx