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

Expand RadComboBox when focused using tab

3 Answers 311 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Roberto Yudice
Top achievements
Rank 1
Roberto Yudice asked on 29 Apr 2010, 05:31 PM
I noticed that when you focus a radComboBox by pressing tab it doesnt expand, is there a property or a way to make it expand?
Thanks!

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 29 Apr 2010, 05:45 PM
Hi Roberto Yudice,

You can expand RadComboBox by pressing Alt+DownArrow keys.
More details about keyboard support you can find at this online demo.

Greetings,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Roberto Yudice
Top achievements
Rank 1
answered on 29 Apr 2010, 05:50 PM
Hi, thank you for your prompt response, is there a way to change this behaviour so that it expands when it gets focused using tab?
0
Kalina
Telerik team
answered on 29 Apr 2010, 06:21 PM
Hi Roberto Yudice,

You can handle OnClientFocus event and then call showDropdown client-side method:

<script type="text/javascript">
 
    function OnClientFocusHandler(sender, eventArgs) {
        if (!sender.get_dropDownVisible()) {
            sender.showDropDown();
        }
    }
</script>
 
<telerik:RadComboBox ID="RadComboBox1" runat="server"
    OnClientFocus="OnClientFocusHandler">
    <Items>
        <telerik:RadComboBoxItem Value="1" Text="item1" />
        <telerik:RadComboBoxItem Value="2" Text="item2" />
        <telerik:RadComboBoxItem Value="3" Text="item3" />
    </Items>
</telerik:RadComboBox>

At this help artilce you can find more details about RadComboBox client-side API.

All the best,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Roberto Yudice
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Roberto Yudice
Top achievements
Rank 1
Share this question
or