I am currently using the solution outlined this post http://blogs.telerik.com/vladimirenchev/posts/10-05-31/how-to-synchronize-your-ui-selected-items-with-your-data-context-using-mvvm-and-blend-behaviors-for-silverlight-and-wpf.aspx
to set my SelectedItem and SelectedItems from a RadGrid to a property on my viewModel (this works great by the way -thank you). What I am trying to do now is the same approach for a child grid of that same grid. I need to set SelectedDetailItem and SelectedDetailItems I believe the same approach will work but I cannot access my SelectedDetailItem and SelectedDetailItems properties (which belong to my view model) from this child grid. I simply cannot get them to bind.
I have tried a few different things such as neither of which have worked.
and
Do you have any ideas on how to bind the SelectedItem from a child grid to a property on a view model?
to set my SelectedItem and SelectedItems from a RadGrid to a property on my viewModel (this works great by the way -thank you). What I am trying to do now is the same approach for a child grid of that same grid. I need to set SelectedDetailItem and SelectedDetailItems I believe the same approach will work but I cannot access my SelectedDetailItem and SelectedDetailItems properties (which belong to my view model) from this child grid. I simply cannot get them to bind.
I have tried a few different things such as neither of which have worked.
SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.SelectedDetailItem}"
and
SelectedItem="{Binding SelectedDetailItem,ElementName=myViewName}"
Do you have any ideas on how to bind the SelectedItem from a child grid to a property on a view model?