Edit this page

Focus the RadComboBox

Set the focus on the client

To focus RadComboBox on the client, you should follow the steps below:

  • Get the client-side instance of RadComboBox;

  • Get the DOM element of the input field;

  • Focus the input field.


function SetFocus() {
    var comboBox = $find("<%=RadComboBox1.ClientID %>");
    var input = comboBox.get_inputDomElement();
    input.focus();
}

Set the focus on the server

Use the SetFocus method of the ScriptManager or RadScriptManager.


RadComboBox1.Focus();


RadComboBox1.Focus()

note

The focus of RadComboBox might not be visible in some browsers if AllowCustomText property is not set to true. You could test the focus using the OnClientFocus event.

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy