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

Nested table vertical alignment?

1 Answer 289 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 21 Sep 2012, 07:30 PM
Hi,

I have a table that contains a row with column A two nested tables which functions as a checklist of items.   The problem is if there is an odd number of items that the one with the fewer amount of items will vertically align itself in the middle.  I would like this to be vertically aligned at the top so the rows in the two tables line up with each other.  See my screen shots which contain an even number of items (good.png) and an odd number of items (bad.png)

Note that I am only using nested tables because multi-column subreports to not have the ability to flow left to right and then down. 

Thanks,
David A.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Sep 2012, 12:56 PM
Hello David,

The behavior you observe is by design as the item would be docked into the Table cell and occupy the whole cell even if there are only for e.g. 2 records. What you can do is use a single CrossTab item to create a left to right layout with some manual preparation of the data. The idea is to do the CrossTab grouping by a criteria that will always return equal number of columns. This is accomplished by using "Id % X" and "Id / X" where X = number of columns and Id is consequential numbering (1, 2, 3, ....)

I've attached a sample project that shows this approach in action.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
David A.
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or