Select Item with tab

2 posts, 0 answers
  1. Heiko
    Heiko avatar
    116 posts
    Member since:
    Oct 2012

    Posted 13 Jun 2011 Link to this post


    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">

    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?

  2. Boyan
    Boyan avatar
    758 posts

    Posted 16 Jun 2011 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top