Hi,
The problem:
On the click of a row I have to show the child records (more suitable for HierarchicalTemplate but for some unknown reasons it failed in our project, though worked in the demo I prepared). Basically it seems that the row is not expanding to show rowDetailTemplate which contains another radgridview. The issue was due to some properties in style. I don't find a link to delete, please delete this link. I am facing another issue but will open an appropriate thread.
So I am using RowDetailsTemplate, which contains RadGridView again. I have moved binding logic from the XAML file to code behind for testing in the OnRowDetailsVisibilityChanged. The problem is binding is working fine in all the cases, but detail grid shows exactly over the parent row. I am attaching the image. I have trying doing the same with GridViewToggleRowDetailsColumn but result is the same. Here is my grid Code and thanks in advance for the help.
The problem:
On the click of a row I have to show the child records (more suitable for HierarchicalTemplate but for some unknown reasons it failed in our project, though worked in the demo I prepared). Basically it seems that the row is not expanding to show rowDetailTemplate which contains another radgridview. The issue was due to some properties in style. I don't find a link to delete, please delete this link. I am facing another issue but will open an appropriate thread.
So I am using RowDetailsTemplate, which contains RadGridView again. I have moved binding logic from the XAML file to code behind for testing in the OnRowDetailsVisibilityChanged. The problem is binding is working fine in all the cases, but detail grid shows exactly over the parent row. I am attaching the image. I have trying doing the same with GridViewToggleRowDetailsColumn but result is the same. Here is my grid Code and thanks in advance for the help.
<telerik:RadGridView Name="gridCountEntry" MinHeight="500"
RowDetailsVisibilityChanged="GridCountEntry_OnRowDetailsVisibilityChanged" ItemsSource="{Binding CurrentRecord.StockTicketLines, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowGroupPanel="False" AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsVisibilityMode="Collapsed" >
<!-- <telerik:RadGridView.ChildTableDefinitions> <telerik:GridViewTableDefinition> <telerik:GridViewTableDefinition.Relation> <telerik:PropertyRelation ParentPropertyName="LineStockTransactions"></telerik:PropertyRelation> </telerik:GridViewTableDefinition.Relation> </telerik:GridViewTableDefinition> </telerik:RadGridView.ChildTableDefinitions> -->
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineProductCode}" Header="Code" IsReadOnly="True" Width="55"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineRowAttribute}" Header="Attribute" IsReadOnly="True" Width="70"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineColumnAttribute}" Header="Attribute" IsReadOnly="True" Width="70"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineProductDescription}" Header="Description" IsReadOnly="True" Width="150"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineStorageLocation}" Header="Storage Location" IsReadOnly="True" Width="130"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineOwnerShip}" Header="Ownership" IsReadOnly="True" Width="100"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineOnHand}" Header="On Hand" IsReadOnly="True" Width="70"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding LineCounted}" Header="Counted" Width="55"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding LineChange}" Header="Change" IsReadOnly="True" Width="70"/>
<telerik:GridViewToggleRowDetailsColumn />
</telerik:RadGridView.Columns>
<telerik:RadGridView.RowDetailsTemplate>
<DataTemplate>
<telerik:RadGridView ShowGroupPanel="False" AutoGenerateColumns="False" CanUserFreezeColumns="False" MinHeight="90" Margin="15,15,15,15">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding TransactionDate}" UniqueName="TransactionDate" Header="Trans Date" IsReadOnly="True" Width="70"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding PerformedBy}" UniqueName="PerformedBy" Header="Who" IsReadOnly="True" Width="70"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>