Hi,
Consider i have selected any item in webdropdown through UI. Then in Button Click iam doing
wddCAType.SelectedItemIndex = 0;
But Still DropDown does n't lose the focus on previously selected item through UI.
what to do to lose focus on previously selected item.
You are confusing Activation with Selection.
You are actually clearing the selection, but what you see is the Active style applied, not the selected style.
An active item is used in keyboard navigation / multiple selection and if you don't want active style to be applied, you can just clear the contents of the .igdd_ListItemActive class in the styleset.
Hope it helps,
Angel
Hi ,
My Problem is Consider I have selected one item in the webdropdown from UI . After Selection Iam clicking on one button. In the Button Click iam doing the following
int count = wddEmp.SelectedItems.Count; // Here Count Value is 1
wddEmp.SelectedItems.Clear();
count = wddEmp.SelectedItems.Count; // Here also count value is 1 but it shoul come 0 na.
That means its not clearing the selected items. So How to clear the items selected in the webdropdown using code.
Hello,
there is no focus set on the previously selected item. Did you mean the css class applied? If you are trying to set selected item index on the client side, you can use selectItemByIndex method.Regards,Nikolai Dimitrov