We have a RadGridView and within this grid we have another RadGridView. We are trying to get the selected item from this nested sub-grid. The code below just shows a button (we have ripped out the other grid) we are unable to get this button to call the command in our viewModel. We have tried buttons, the grid enabled select checkboxes. Nothing will call our command property.
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<Button Command="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DataContext.SelectCommand}" CommandParameter="{Binding}" Content="Button" Margin="4"></Button>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>
we have also tried - where Root is the name of our UserControl.
<Button Command="{Binding ElementName=Root, Path=DataContext.SelectCommand}" CommandParameter="{Binding}" Content="Button" Margin="4"></Button>
We have read online that there may be a limitation of this control doing what we would like it to do - can someone please give some clarity on how we can best solve this situation.
thank you.
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<Button Command="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=DataContext.SelectCommand}" CommandParameter="{Binding}" Content="Button" Margin="4"></Button>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>
we have also tried - where Root is the name of our UserControl.
<Button Command="{Binding ElementName=Root, Path=DataContext.SelectCommand}" CommandParameter="{Binding}" Content="Button" Margin="4"></Button>
We have read online that there may be a limitation of this control doing what we would like it to do - can someone please give some clarity on how we can best solve this situation.
thank you.