To illustrate MultiSelectComboBox, I am using some forum posted code.
for comboBox i am using
<
telerik:RadComboBox
SelectedIndex
=
"0"
x:Name
=
"MembersComboBox"
ItemsSource
=
"{Binding Members}"
ItemTemplate
=
"{StaticResource MultiSelectionComboBoxItemTemplate}"
Visibility
=
"{Binding CanViewOtherUserTrendingConfiguration}"
SelectionBoxTemplate
=
"{StaticResource MultiSelectionComboBoxSelectionBoxTemplate}"
ToolTip
=
"{Binding SelectedMembersText}"
Width
=
"150"
Height
=
"20"
/>
<
telerik:RadDocumentPane
x:Class
=
"MainChart.MainChartView"
...
>
and datatemplate MultiSelectionComboBoxSelectionBoxTemplate is defined as
<
DataTemplate
x:Key
=
"MultiSelectionComboBoxSelectionBoxTemplate"
>
<
TextBlock
Text
=
"{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadDocumentPane}, Mode=FindAncestor}, Path=DataContext.SelectedMembersText}"
/>
</
DataTemplate
>
my question is when i check the checkboxes in the comboBox, it updates the tooltip of combo box, which is bind to viewModel's property SelectedMembersText, but it do not updates the textlbock inside the SelectionBoxTemplate. I am sure i am making some mistake in doing dataBinding. please help me fixing this issue, as i have already applied all possible ways(in my knowledge) of binding textBlock to the field.