Hi,
I got problem with SelectedItems binding - If I put breakpoint to the Setter of the SelectedComboFilterItems it will never be hit.
View:
<
telerik:RadAutoCompleteBox
x:Name
=
"ComboFilterAutoCompleteBox"
Grid.Column
=
"1"
Grid.Row
=
"5"
Margin
=
"1"
HorizontalAlignment
=
"Stretch"
TextSearchMode
=
"Contains"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
TextSearchPath
=
"FormattedName"
DisplayMemberPath
=
"Name"
SelectionMode
=
"Multiple"
ItemsSource
=
"{Binding ComboFilterItems,Mode=TwoWay}"
SelectedItems
=
"{Binding SelectedComboFilterItems,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsEnabled
=
"{Binding ComboFilterEnabled}"
FilteringBehavior
=
"{StaticResource CustomFilteringBehavior}"
<telerik:RadAutoCompleteBox.DropDownItemTemplate>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding FormattedName}"
/>
</
DataTemplate
>
</
telerik:RadAutoCompleteBox.DropDownItemTemplate
>
</
telerik:RadAutoCompleteBox
>
Here is ViewModel:
public ObservableCollection<
DocumentType
> mSelectedComboFilterItems = new ObservableCollection<
DocumentType
>();
public ObservableCollection<
DocumentType
> SelectedComboFilterItems
{
get
{
return mSelectedComboFilterItems;
}
set
{
mSelectedComboFilterItems = value;
}
}
public ObservableCollection<
DocumentType
> ComboFilterItems { get; set; } = new ObservableCollection<
DocumentType
>();
Rest of the binding is working fine.
If I select few items the SelectedComboFilterItems will hold those values. Just for some reason the setter is never called.
Cheers
Mike