Autocomplete and more

2 posts, 0 answers
  1. Dmitrijs
    Dmitrijs avatar
    11 posts
    Member since:
    Jun 2012

    Posted 27 Jun 2012 Link to this post

    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

  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 29 Jun 2012 Link to this post

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

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top