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

Autocomplete feature : when i start typing in the combobox, it doesn't dropdown the options automatically

13 Answers 1898 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Todd Millett
Top achievements
Rank 1
Todd Millett asked on 11 Jan 2011, 09:29 AM
I am using the combobox to achieve the autocomplete feature. As per the documentation i have set only the IsEnabled=true. Now in the datasource i have multiple items which have similar words like (Cooperation, Cooperatiove ...). Now when I start typing C, ideally it should display the first match in the combobox along with the rest of the matching items with 'C' in a dropdown kind of thing automatically.. but I am not able to see that. Can you please suggest, if I need to make any other changes.

13 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 11 Jan 2011, 05:29 PM
Hi Todd,

Currently RadComboBox cannot open its dropdown automatically when the user starts typing inside. It only can open its dropdown when it gets the focus - just set OpenDropDownOnFocus = true.

Kind regards,
Valeri Hristov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
nezar
Top achievements
Rank 1
commented on 31 May 2023, 12:14 PM

hi and thank you for hlp 
but i cant find  OpenDropDownOnFocus = true. in properties left panel 
0
Todd Millett
Top achievements
Rank 1
answered on 12 Jan 2011, 06:05 AM
But even if i set that property, it does not filter the drop down when i type something. Is it mandatory to enable the filtering even for autocomplete?
0
Boyan
Telerik team
answered on 13 Jan 2011, 06:03 PM
Hi Todd Millett,

If you want to filter the items so only the items starting with letter "C" are showed, you have to set IsFilteringEnabled= true. If nothing is set the first item starting with letter C will be selected and autocomplete in the textbox but the other entries wont be filtered. You can check this configurator here and see if that behavior will suit you

Kind regards,
Boyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Todd Millett
Top achievements
Rank 1
answered on 23 Feb 2011, 06:15 AM
I tried setting IsFilteringEnabled=True and OpenDropDownOnFocus = True. It works find when the user has the focus for the first time. Now take the scenerio : user focuses on the combobox, the drown down opens, now the user has the mouse cursor in the combobox. Without entering anything he clicks somewhere out of the combobox, so still the cursor is in the combobox. In this case again the drop down doesnt open. I even tried setting IsDropDownOpen = True in the GotFocus event of the combobox, but was not able to get the behaviour required. Can you please tell me how to achieve this.
0
Boyan
Telerik team
answered on 25 Feb 2011, 09:27 AM
Hi Todd Millett,

You can try to set IsDropDownOpen = True  in the KeyDown event of the RadComboBox. I think this will cover your scenario.

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


Kind regards,
Boyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
codeputer
Top achievements
Rank 2
answered on 13 Mar 2011, 10:25 PM
I think I'm having a smiliar problem - let me if I can explain

If i have the following list of elements:

Adam
Bev
Charles
Edmond

In my combobox, when I type B, I would like to see autocomplete kick in and display "Bev", but right now it only displays B.

IF I type B and then hit the tab - Bev does show up in the list.  I would like this  behaviour after just typing B without pressing tab, and of course, without leaving the field.

0
George
Telerik team
answered on 14 Mar 2011, 12:43 PM
Hello, 


Please, refer to the following links:

I hope this helps.

Kind regards,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
codeputer
Top achievements
Rank 2
answered on 14 Mar 2011, 05:05 PM

I've reviewed the documentation extensively, and believe that I have an indication where things might be going wrong...

The class that I'm binding to has a surrogate key, followed by a description.  ClaimTypeID, and ClaimType.  I've listed them here wtih SelectedValuePath, and DisplayMemberPath.  I think it is this translation that is not occuring after a keystroke that unique identifies an item in the list.

The same behaviour that I am experiencing can be found using your demo by simply setting the IsFilteringEnabled = true. ( I've set my to false, but it had no visual effect.)  Set this attribute to true, clear the combobox, and type the first letter.  The correct item will be selected, but the enter word of the selection will not be displayed in the combobox until the user presses Tab.

Also, I've never seen the telerik:TextSearch.TextPath - I'm going to look in the documentation for what that is for (I can guess but don't want to assume).


        <telerik:RadComboBox 
                Grid.Column="1"
                x:Name="cboClaimType"
                CanAutocompleteSelectItems="True"
                OpenDropDownOnFocus="False"
                IsFilteringEnabled="False"
                FilteringMode="StartsWith" 
                IsEditable="True" 
                IsReadOnly="True"
                ItemsSource="{Binding LookUpQueryViewModel.ClaimTypes, Mode=OneWay, Source={StaticResource ViewModelLocatorDataSource}}"
                DisplayMemberPath="ClaimType" 
                SelectedValuePath="ClaimTypeID" 
                HorizontalAlignment="Left" 
                MinWidth="150"
                Margin="5"
                telerik:TextSearch.TextPath="ClaimType"
        />
 
0
George
Telerik team
answered on 17 Mar 2011, 05:43 PM
Hello,

 
When the filtering is enabled, the RadComboBox doesn't autocomplete. I would suggest you to set IsFilteringEnabled property to False.

Best wishes,
George
the Telerik team
0
Rohit
Top achievements
Rank 1
answered on 28 Jun 2015, 04:32 AM

Hi,

   I am using Rad Combo Box , I want result will appear only when i  write to search in combo box, But currently it open directly when i just click on rad combo box.

Please help me out.

Regards

 

Rohit Gupta

 

 

 

 

 

0
Nasko
Telerik team
answered on 01 Jul 2015, 10:26 AM
Hi Rohit,

RadComboBox's DropDown should not open automatically when you move the focus to it unless its OpenDropDownOnFocus property is set to True - please, set it to False in order to prevent it from opening when the control gets focused. If you want to open it as soon as a text is typed inside RadComboBox's TextBox you need to handle the KeyDown event of the control and set its IsDropDownOpen property to True:
private void comboWindow2_KeyDown(object sender, KeyEventArgs e)
{
    var combo = sender as RadComboBox;
 
    if (!combo.IsDropDownOpen)
    {
        combo.IsDropDownOpen = true;
    }
}

Please, give a try to the proposed above approaches and let us know if they worked for you.

Hopes this helps.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Malik
Top achievements
Rank 1
answered on 15 Mar 2019, 10:53 AM

Hi,

I want to list all bound values in the kendo auto complete on mouse click on the control as it is listing on key enter.

Thanks.

Malik Z.

0
Dinko | Tech Support Engineer
Telerik team
answered on 19 Mar 2019, 02:34 PM
Hi Malik,

This is UI for Silverlight forum. Your question is related for Kendo UI so you can post your question in the related forum.

Regards,
Dinko
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ComboBox
Asked by
Todd Millett
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Todd Millett
Top achievements
Rank 1
Boyan
Telerik team
codeputer
Top achievements
Rank 2
George
Telerik team
Rohit
Top achievements
Rank 1
Nasko
Telerik team
Malik
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or