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

Problem with keeping distance between two tables

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ytnytn1
Top achievements
Rank 1
ytnytn1 asked on 20 Aug 2016, 06:01 AM

Hello,

I'm using wpf reporting and I faced to problem: when the height of the top table increases, it begins to cover the bottom table. What I need to do is to keep the distance between them, and I don't know how to do it. I tried doing that using itemdatabinding event

private void OnItemDataBinding(object sender, EventArgs args)
{
    table1.Location = new PointU(Unit.Cm(0.0D), Unit.Cm(1.2D + table2.Height.Value));

but it doesn't work, because table2's actual height is unknown until report wasn't generated.

So are there any ways to do it?  

Thanks,

Ivan

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 24 Aug 2016, 01:46 PM
Hello Ivan,

Keeping the distance between the items is actually the default behavior of the reporting engine. The distance set during design-time will be preserved at run-time even when the items grow. Thus, it is not required to do anything special to achieve this scenario.

Please find attached a sample report demonstrating the approach.

Regards,
Nasko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
ytnytn1
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or