How to set focus to AutoCompleteBox?

1 Answer 151 Views
AutoCompleteBox
Yan Moura
Top achievements
Rank 1
Veteran
Iron
Yan Moura asked on 27 May 2021, 06:45 PM

How to set focus to AutoCompleteBox?

I tried the following but it doesn't work:

var autoComplete = $find("<%= RadAutoCompleteBox1.ClientID %>");
autoComplete.focus();

Error: autoComplete.focus is not a function

1 Answer, 1 is accepted

Sort by
0
Yan Moura
Top achievements
Rank 1
Veteran
Iron
answered on 29 May 2021, 03:09 PM

I figured it in case someone else is in the same trouble:

var autoComplete = $find("<%= RadAutoCompleteBox1.ClientID %>");
autoComplete._inputElement.focus();
Tags
AutoCompleteBox
Asked by
Yan Moura
Top achievements
Rank 1
Veteran
Iron
Answers by
Yan Moura
Top achievements
Rank 1
Veteran
Iron
Share this question
or