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

Select Item with tab

1 Answer 91 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Veteran
Heiko asked on 13 Jun 2011, 03:00 PM
Hi,

i have following xaml for my combobox:
<telerik:RadComboBox HorizontalAlignment="Left" DockPanel.Dock="Top" Margin="5,0,5,0" TabIndex="1" FontSize="14"  Name="RadComboBoxLocality"
                                             VerticalAlignment="Top" Width="286" Height="25"  IsEditable="True"
                                             ItemTemplate="{StaticResource CustomItemTemplateLocality}"   CanKeyboardNavigationSelectItems="False"
                                             MaxDropDownHeight="400" StaysOpenOnEdit="True" OpenDropDownOnFocus="True" IsDropDownOpen="True"
                                             ItemsSource="{Binding Source={StaticResource SuggestorViewModel}, Path=Searchresult}"
                                             SelectedValue="{Binding Source={StaticResource SuggestorViewModel}, Path=CurrentItem, Mode=TwoWay}"
                                             Text="{Binding Source={StaticResource SuggestorViewModel}, Path=LocalityName, Mode= TwoWay}"
                                             IsSynchronizedWithCurrentItem="True" IsFilteringEnabled="False">
                        </telerik:RadComboBox>

Selecting a item from list works with Enter-Key without problems. But when I move through the list an press tab nothing will be selected and the dropdown just closes. Any ideas?

Thanks,
neils

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 16 Jun 2011, 09:42 AM
Hi Neils,

This is the way RadComboBox is working by default. You have to press enter in order to select item and pressing Tab key just moves the focus to the next item without selecting the highlighted item. You can use the properties CanKeyboardNavigationSelectItems and CanAutocompleteSelectItems and set them to true. This way when you move between items with the keyboard they will be selected. Hope this works for you.

Greetings,
Boyan
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
Heiko
Top achievements
Rank 1
Veteran
Answers by
Boyan
Telerik team
Share this question
or