RadComboBox Editable Text Search

3 posts, 1 answers
  1. Kyle
    Kyle avatar
    7 posts
    Member since:
    Jun 2011

    Posted 08 Jun 2011 Link to this post

    Sorry if this has been posted elsewhere but I've been unable to find it.  Here's the deal, I have a combobox that has IsEditable = true and I would like to be able to have the user begin typing in the editable box while the drop down menu narrows down the search to locate the text that begins with what the user is typing in. 

    However, as it currently works the user types a single letter, say "b" into the box and it instantly selects the first option that starts with a 'b'  (the list is presorted).  Is there some property to get it to allow the user to continue typing in so that they might type "be" without it instantly selecting the first one at the first letter typed.  Here is what the full combobox is, if it helps any: 

    <telerik:RadComboBox Style="{StaticResource RadComboBoxStyle_Light}" Grid.Column="1" HorizontalAlignment="Left" MinWidth="120" Margin="0, 0, 10, 0"
                   SelectedValuePath="ParentId" ItemsSource="{Binding ParentList}" DisplayMemberPath="ParentName"
                   SelectedValue="{Binding SelectedParentId, Mode=TwoWay}" ex:ComboBox.Mode="Async" VerticalAlignment="Bottom"
                   IsEnabled="{Binding IsReady}" IsEditable="True"
                   Visibility="{Binding IsDisplayMode, Converter={StaticResource VisibilityConverter}, ConverterParameter='Inverse'}" />

    Thanks in advance!

  2. Answer
    Boyan avatar
    758 posts

    Posted 10 Jun 2011 Link to this post

    Hello Kyle,

    I advise you to try and set these properties:
    CanAutoCompleteSelectItems= false
    IsFilteringEnabled= true

    Setting this properties the behavior will be like this. When you focus the RadComboBox the dropdown will open and filtering will be enabled so when write some letters the items will be filtered and SelectedItem will change only when you press enter or choose one with the mouse. Hope this will suit your needs.

    Don't hesitate to contact us if you have further questions.

    Kind regards,
    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
  4. Kyle
    Kyle avatar
    7 posts
    Member since:
    Jun 2011

    Posted 10 Jun 2011 Link to this post

    That seems to have given it exactly the functionality I needed in a very simple solution, thank you very much!
Back to Top