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}"
AutoCompleteMode="Suggest"
DropDownItemTemplate="{StaticResource userDataTemplate}"
TextSearchPath="DisplayName"
DisplayMemberPath="DisplayName" SelectedItems="{Binding SelectedContacts,Mode=TwoWay}">
</telerik:RadAutoCompleteBox>
Property:-
private List<Presentity> _SelectedContacts;
public List<Presentity> SelectedContacts
{
get
{
return _SelectedContacts;
}
set
{
_SelectedContacts = value;
NotifyOnPropertyChanged("SelectedContacts");
}
}
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)
{
users.Add(user);
}
}
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}"
AutoCompleteMode="Suggest"
DropDownItemTemplate="{StaticResource userDataTemplate}"
TextSearchPath="DisplayName"
DisplayMemberPath="DisplayName" SelectedItems="{Binding SelectedContacts,Mode=TwoWay}">
</telerik:RadAutoCompleteBox>
Property:-
private List<Presentity> _SelectedContacts;
public List<Presentity> SelectedContacts
{
get
{
return _SelectedContacts;
}
set
{
_SelectedContacts = value;
NotifyOnPropertyChanged("SelectedContacts");
}
}
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)
{
users.Add(user);
}
}