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

Parent and Child Rows alignment Issue

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pardha Saradhi
Top achievements
Rank 1
Pardha Saradhi asked on 02 Dec 2010, 11:22 AM
Hi,
I have been using a Telerik grid which displays child records on clicking on master record using <DetailTables>. But i am getting the following issue.

When a user expand a Parent row then the child rows are displayed. But the child are not aligned with the parent grid columns and also if a user resize the column in the parent grid then child columns should also be resized to match with parent grid column.

Please provide me the better solution for this issue.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 07 Dec 2010, 01:06 PM
Hi Pardha,

Child tables are rendered as separate <table> elements inside the nested item of the parent table. Their columns are not aligned with their parent's. If you need parent and child table columns aligned, you need to set the HeaderStyle-Width of the columns in both the master and detail table to some value in pixels, so that column widths adjust respectively. Also, column resizing works on a grid table level, so resizing parent items does not automatically resize detail tables and vice versa.

Veli
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Pardha Saradhi
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or