This is a migrated thread and some comments may be shown as answers.

Set focus on RadComboBox but still display EmptyMessage

3 Answers 122 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 03 Jun 2013, 06:28 PM
Hello,

On page load I want to give a RadComboBox focus but still display the emptymessage. When I start typing, I want the emptymessage to disappear. Is this possible?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2013, 04:48 AM
Hi J,

Please try the following JavaScript to set focus on the RadComboBox on page load and the EmptyMessage wont get displayed. To know more about focusing the RadComboBox, please visit this documentation.

JavaScript:
<script type="text/javascript">
    function pageLoad() {
        var RadComboBox1 = $find('<%=RadComboBox1.ClientID %>');
        var input = RadComboBox1.get_inputDomElement().focus();
    }
</script>

Thanks,
Shinu
0
J
Top achievements
Rank 1
answered on 04 Jun 2013, 02:18 PM
But I want the combobox to have focus and the emptymessage to be displayed.
0
Nencho
Telerik team
answered on 06 Jun 2013, 08:36 AM
Hello,

This scenario is not supported, since the functionality of the EmptyMessage in the RadComboBox is that it should disappear, once the control is focused, regardless if the user is allowed to type in the input of the control or not.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
J
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
J
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or