Report field grows even though enough space

1 Answer 113 Views
Report Designer (standalone)
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Benedikt asked on 29 Oct 2021, 07:04 AM

Hi guys,

 

In my report I have a table like thing (it needs to be like this because of complicated data and a normal table isn't capable of everything I need).
Based on the type of data (there are doors, walls etc.) I have different "columns" visible.
So I made a few panels right docking, a few left docking and the middle "Teile-Art" is fill.
The problem is now, that even though this "Teile-Art" has enough space because other columns are not visible, it uses space like there is not enough.
If I set the Textbox in it to Multiline=False it not grows, but I actually want it multiline if there would be not enough space.

I attached my report, you cant preview it, cause you want have the database, but you should see how the elemts are set with Docking.
I played around with Docking and Anchor but don't get it to work as I want.

 

Maybe you have an idea.

Greetings, Benedikt

Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
commented on 29 Oct 2021, 07:43 AM

And if I have even more "columns", so in the designer they overlap, it gets like this

1 Answer, 1 is accepted

Sort by
1
Accepted
Todor
Telerik team
answered on 02 Nov 2021, 12:47 PM

Hello Benedikt,

Thank you for the provided report. Indeed, I cannot run it without data, so I created a dummy CsvDataSource with the existing fields. The column 'Teile-Art' occupied the space between 'Fertig-länge' and 'Zuschnitt-breite' as it has Docking set to Fill. If I understood correctly, the issue is with the height of the row that grew as if the data was on multiple lines.

The reason for this behavior is that the Reporting engine calculates the needed number of rows before applying the Docking. We have a bug report for a similar issue logged in our public feedback portal that you may vote for - Column's height is not calculated correctly.

Along with Multiline, for overcoming the problem you may use the properties CanGrow and/or TextWrap of the TextBoxes in the header columns. When CanGrow is False (the default is True) the TextBox won't increase its height. When TextWrap is False (the default is True), the text will remain on a single row, hence it won't be necessary to enlarge the TextBox area vertically. In both cases, the text may be cut if it doesn't fit in the single line of the TextBox. I'm afraid I cannot offer a workaround that would display the data properly on multiline in this scenario.

Regarding the second issue, when there are overlapping items, the Reporting engine cannot define which are the neighbor items, hence cannot fill the area between them. I suspect that is the reason for the blank area. You need to assure there are no overlapping items.

Let me also suggest some other approaches for creating tables with dynamic columns:

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
commented on 08 Nov 2021, 01:26 PM

Hi Todor,

with a dynamic table I now achieved what I want. Thanks for the tip.

Tags
Report Designer (standalone)
Asked by
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Todor
Telerik team
Share this question
or