Autocomplete is not working

3 posts, 0 answers
  1. Tony
    Tony avatar
    111 posts
    Member since:
    May 2011

    Posted 16 Apr 2012 Link to this post

    I have a RadComboBox on a form in my WPF application:

    <telerik:RadComboBox BorderBrush="{DynamicResource ControlBorder}"
                         Foreground="{DynamicResource TextForeground}"
                         ItemsSource="{Binding Path=RecentUsers, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type c:LoginForm}}}"
                         Width="300" />

    In my code-behind, I have declared a DependencyProperty called RecentUsersProperty:

    public static readonly DependencyProperty RecentUsersProperty =
        DependencyProperty.Register( "RecentUsers", typeof( string[] ), typeof( LoginForm ), new PropertyMetadata( null ) );
    public string[] RecentUsers {
        get { return (string[]) GetValue( RecentUsersProperty ); }
        set { SetValue( RecentUsersProperty, value ); }

    In the Loaded event handler of the window that contains this field, I set the RecentUsers to an array of strings retrieved from the database:

    RecentUsers = DataInterface.GetRecentUsers( 90 );

    Here's the data that's returned by the call to GetRecentUsers:


    When the window is displayed and I start typing the name of a user that is in the RecentUsers array, autocomplete does not fill in the rest of the matching name.  If I tab out of the field, though, it selects the first one that matches. 

    What am I doing wrong?  I'm using the 2012.1.326.40 version of the Telerik libraries.

  2. George
    George avatar
    1332 posts

    Posted 17 Apr 2012 Link to this post

    Hi Tony,

    I would suggest removing the IsFilteringEnabled="True" property for the RadComboBox control. For more information about autocompleting and filtering, please refer to our help -  

    Hope this helps.

    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
  4. Tony
    Tony avatar
    111 posts
    Member since:
    May 2011

    Posted 17 Apr 2012 Link to this post


    Thank you, that did it!

Back to Top