Two Way Binding problem in AutoCompleteTextBox

2 posts, 0 answers
  1. Manoj
    Manoj avatar
    1 posts
    Member since:
    May 2014

    Posted 09 Jul 2014 Link to this post

    Hi support,
    I am facing the problem with Auto Complete Box.I have just downloaded the latest trial version.I want to use two way binding feature.I have observed that It is working fine.But the problem is when I type in the box DisplayMemberPath binding has broken.I am attaching the Xaml and VM also.

    <telerik:RadAutoCompleteBox SelectionMode="Multiple" x:Name="tokenControl"
                                                Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="7" MaxHeight="100" Margin="0 5"
                                                ItemsSource="{Binding Source={x:Static local:Globals.Instance},Path=Users}"
                                                DropDownItemTemplate="{StaticResource userDataTemplate}"
                                                DisplayMemberPath="DisplayName" SelectedItems="{Binding SelectedContacts,Mode=TwoWay}">

      private List<Presentity> _SelectedContacts;
            public List<Presentity> SelectedContacts
                    return _SelectedContacts;
                    _SelectedContacts = value;
    Code For Selection:-
    foreach (Recipient recipient in SelectedExistingTask.Recipients)
                            Recipient localRecipient = recipient;
                            Presentity user = Globals.Instance.Users.FirstOrDefault((p) => p.UserId == localRecipient.Id);
                            if (user != null)

  2. Vladi
    Vladi avatar
    749 posts

    Posted 11 Jul 2014 Link to this post

    Hi Manoj,

    We are not sure we understand what exactly the issue is when using the DisplayMemberPath and TextSearchPath of the control. In the scenarios where the properties are bound to the same value or to different values there are no unexpected behaviors observed in the latest version of RadAutoCompleteBox control.

    I recorded and attached to my response a short video showing how the scenario run on our side. Please let us know if we have missed something.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top