My RadGridView is binded to a List of (say) Samples. In RowDetailsTemplate I want to show another RadGridView which will show the related records from the List (say) Analysis. The main RadGridView GrdSamples is bound in Codebehind as :
GrdSamples.ItemsSource=SamplesViewModel.GetAll();
How can I bind the Child GridView GrdAnalysis in the same way. And on which event I will get the GrdSamples ID, So that I can use Some thing like
var SampleID = ? GrdAnalysis.ItemsSource=AnalysisViewModel.Get(SampleID);Here is the XAML
<telerik:RadGridView x:Name="GrdSamples" AutoGenerateColumns="False"> <telerik:RadGridView.Columns>...</telerik:RadGridView.Columns> <telerik:RadGridView.RowDetailsTemplate> <DataTemplate> <telerik:RadGridView x:Name="GrdAnalysis" AutoGenerateColumns="False"> </DataTemplate> </telerik:RadGridView.RowDetailsTemplate> </telerik:RadGridView>
