Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Using Enter key to move away from WebDropDown
posted

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();

} }

 

 

Parents Reply Children
No Data