This is a migrated thread and some comments may be shown as answers.

RowDetailsTemplate, Row details show over the parent row

1 Answer 207 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Syed Saqib Ali
Top achievements
Rank 1
Syed Saqib Ali asked on 29 Apr 2013, 10:22 PM
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.

<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>


1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 01 May 2013, 07:36 AM
Hello,

That is a very interesting behavior that we have never encountered before. We have tried to reproduce this locally, but unfortunately, to no avail. No matter what we try we always get correct row details.

Can you please prepare a sample project that reproduces this behavior, open a new support ticket and attach the sample project there. Once we have it, we can debug it and see what exactly is going on.

Thank in advance.

Greetings,

Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Syed Saqib Ali
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or