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

RadComboBox Editable Text Search

2 Answers 277 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 08 Jun 2011, 07:31 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 10 Jun 2011, 09:09 AM
Hello Kyle,

I advise you to try and set these properties:
CanAutoCompleteSelectItems= false
OpenDropDownOnFocus=true
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,
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
0
Kyle
Top achievements
Rank 1
answered on 10 Jun 2011, 02:09 PM
That seems to have given it exactly the functionality I needed in a very simple solution, thank you very much!
Tags
ComboBox
Asked by
Kyle
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Kyle
Top achievements
Rank 1
Share this question
or