I am using Webdropdown having below properties,
MultipleSelectionType = DropDownMultipleSelectionType.Checkbox;
AutoPostBack = false;
EnableClosingDropDownOnSelect = false;
.EnableMultipleSelection = true;
ClientEvents.SelectionChanged = "selectedIndexChanged";
In selectedIndexChanged function i am using,
function TeamselectedIndexChanged(sender, eventArgs) {
var item = sender.get_items().getItem(i);
item.unselect();
}
The above function is working fine when select on the any item area in webdropdown, whereas when i select particularly on check on any item,
The above function was executed but the item remains checked even though unselect() method of the item has been called.
Note: The above issue occurs only when i particularly click on check box of any dropdown item, but if i click on the area of an item there was no issue, the corresponding item got unchecked.
and also the above problem occurring only for the first item in the dropdown which was checked by default.
I appreciate your earlier response....
Hi there, kpavan,
I think I got a solution for you. Try this out and let me know if the issue persists:
function TeamselectedIndexChanged(sender, eventArgs) { var item = sender.get_items().getItem(3); item.unselect(true); }