I want to set focus to another WebDropDown when user selects something using KeyBoard from first WebDropdown and hits the enter Key. The problem is that it sets focus to the other dropdown but then quickly gets back to the first dropdown and the first dropdown remains open. I am using following code to do this, I tried to close the dropdown using javascript but nothing happensand it remains open.
<ig:WebDropDown ID="ddlCommodity" runat="server"
AutoFilterQueryType = "Contains" EnableAutoFiltering ="Client"
EnableAutoCompleteFirstMatch="true"
EnableClosingDropDownOnSelect="true"
EnableClosingDropDownOnBlur ="true"
ClientEvents-InputKeyDown = "MoveToCountry" />
function MoveToCountry(){
if(window.event.keyCode ==13){
var ddlCon = $find('<%=ddlCountry.ClientID %>');
ddlCon._elements["Input"].focus();
} }
Thank you. It worked fine. Can you please answer my another post with subject "AutoComplete feature does not work when AutofilterQueryType is set to "Contain" I will highly appreciate your help.
Thanks and regards,
Mansoor
Hello,sorry for the inconvenience that we have caused you. I believe the solution to your case is to disable the animations on the first drop down.(just set EnableAnimations="false").Regards,Nikolai Dimitrov