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

Programmatic Table Creation - Column and Row sizes

1 Answer 295 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
STELIOS CHRISTOFOROS
Top achievements
Rank 1
STELIOS CHRISTOFOROS asked on 28 May 2009, 12:34 PM

Hello,

I'm trying to create a table programmatically. I have been rather succesful in doing so but I can not find a way to set the size for the columns and rows (width for columns and height for rows).

When you create a report using the designer you can do so by using the mouse. Also if you click on the columns the property editor shows an item with the name TableColumnX or TableRowX where X is the number of the column. However I was unable to locate these items in the code-behind of the report.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 01 Jun 2009, 04:13 PM
Hi Panagiotis,

Thank you for your question.

As you may have already noticed, Telerik Reporting's Table doesn't have explicit row/column definitions, but relies on the Row and Column Group hierarchies to define its underlying grid structure.

The size of the rows and the columns is defined by the size of the items they contain. Generally speaking all items in a row should have the same height and all items in one column - the same width (the exception is for items that span on two or more rows/columns - then the size of the item is defined by the sum of the sizes of all rows/columns it spans). In short the height of one row is defined by the item which has the biggest height and the width of one column is defined by the item with the biggest width.

The mentioned Table Row/Column are available at design time only and setting their size (height/width) just resize the items inside accordingly.

So what you have to do is to have this in mind while building dynamically your table and size the items according to the rows/column it will appear.

Greetings,
Svetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
STELIOS CHRISTOFOROS
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or