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

Table

1 Answer 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Hosey
Top achievements
Rank 1
David Hosey asked on 15 May 2008, 02:49 PM
Hello,

Is there any table which you can use to list your fields.
I am new to Telerik Reporting. I usually use Visual Studio to design a report in rdl/rdlc files and there you have a table.
How do you achieve this in here if you want to have horizontal line separator between each record and align them center if a cell grows?

Regards,
ME

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 16 May 2008, 01:28 PM
Hi David Hosey,

Thank you for contacting Telerik Support.

The Telerik Reporting does not provide Table item right out of the box, but you can simulate it - for example:
  • use BorderStyle property of report items to draw a full or a partial border around them;
  • use Anchor or Dock properties of some items to resize them vertically equally at runtime;
  • use VerticalAlign property to change the vertical alignment of the item's content.
Attached you can find a sample with two reports which demonstrate the approach mentioned above. Please give it a try and note how we are initialized the detail section and items inside it, especially:
  • in Report1 we set:
    • the Top border of detail section to Solid;
    • Top and Bottom Anchors of text boxes inside details section;
    • the VerticalAlign of right most text box is set to Middle in order to center its content vertically;
  • in Report2 we set:
    • the Default border to Solid for all the text boxes inside the detail section;
    • the Dock to Left for all the text boxes except the right most (inside the detail section);
    • the Dock to Fill for the right most text box;
    • the VerticalAlign to Middle for all the text boxes inside the detail section;

If you have any other questions please do not hesitate to contact us again.

All the best,
Ivan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
David Hosey
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or