I was able to create a neat context menu that controls visibility of columns and wanted to show values of hidden ones in a tooltip, but I'm unable to, because somehow the very same binding is returning DependencyProperty.UnsetValue. Why? What makes the difference and how to fix that?
<telerik:RadGridView x:Name="radVideosGridView" ItemsSource="{Binding Customers}"> <telerik:RadGridView.RowStyle> <Style TargetType="telerik:GridViewRow"> <Setter Property="ToolTip"> <Setter.Value> <StackPanel Orientation="Horizontal"> <TextBlock> <TextBlock.Text> <MultiBinding Converter="{StaticResource HiddenColumnsToTooltipConverter}" UpdateSourceTrigger="PropertyChanged" NotifyOnSourceUpdated="False"> <Binding Path="PersonalData" /> <!-- Passes {{DependencyProperty.UnsetValue}} --> <Binding Path="Columns" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadGridView}}}" /> </MultiBinding> </TextBlock.Text> </TextBlock> </StackPanel> </Setter.Value> </Setter> </Style> </telerik:RadGridView.RowStyle> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding PersonalData.FirstName}" Header="Last Name"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding PersonalData.SecondName}" Header="Second Name" IsVisible="False"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding PersonalData.LastName}" Header="Last Name"/> </telerik:RadGridView.Columns> <!-- Works fine --> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu> <telerik:RadContextMenu.Template> <ControlTemplate> <Grid> <telerik:RadListBox ItemsSource="{Binding Columns, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"> <telerik:RadListBox.ItemTemplate> <DataTemplate> <CheckBox Content="{Binding Header}" IsChecked="{Binding IsVisible, Mode=TwoWay}" /> </DataTemplate> </telerik:RadListBox.ItemTemplate> </telerik:RadListBox> </Grid> </ControlTemplate> </telerik:RadContextMenu.Template> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </telerik:RadGridView>