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

Autocomplete and more

1 Answer 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dmitrijs
Top achievements
Rank 1
Dmitrijs asked on 27 Jun 2012, 04:20 PM
Hi,

i want to use radcombobox for autocomplete as Textbox with autocomplete =).
1. How to set visibitility for drop down button(arrow) to false?
2. How to drop down menu on text input with IsFilteringEnabled="True" ?

Best regards,
Dmitrijs Solovjovs

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 29 Jun 2012, 12:07 PM
Hi Dmitrijs,

The RadComboBox cannot be used exactly as an autocomplete TextBox, but you can use the filtering feature and the OpenDropDownOnFocus property to accomplish this. Here is a sample code representing this:

<telerik:RadComboBox Width="100" IsEditable="True" TextSearchMode="Contains" IsFilteringEnabled="True" OpenDropDownOnFocus="True">
    <telerik:RadComboBoxItem Content="Alapattah" />
    <telerik:RadComboBoxItem Content="Brickell Avenue" />
    <telerik:RadComboBoxItem Content="Downtown Miami" />
</telerik:RadComboBox>

To remove the drop down arrow of the RadComboBox you need to customize the RadComboBoxStyle and edit the ArrowTemplateEditableCombobox template.

More details on Styles and Templates in this article.

Hope this helps.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ComboBox
Asked by
Dmitrijs
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or