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

The size of the item without rounding

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ANDREY
Top achievements
Rank 1
ANDREY asked on 19 Apr 2019, 09:49 AM

Hello, I need to get the size of textbox programatically but when I use, for instance, textBox.Height.Value I get the rounded number. Is there any way to get the accurate value of textbox size?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 22 Apr 2019, 04:20 PM
Hello ANDREY,

I tested to get the height of a Telerik.Reporting.TextBox in the constructor and in the ItemDataBound event of the Report, and the values matched the ones set in design time, without rounding up to the sixth digit after the decimal point (when the unit was "cm"). In the code of the event I accessed also the processing TextBox (i.e. Telerik.Reporting.Processing.TextBox) height, and it was equal to the definition item height (the TextBox contained static text).
I tested also with "px" units, and the fractional part was also displayed correctly in both definition and processing item heights.
Could you elaborate on the problem so that we can test locally. Consider opening a support ticket with an example that demonstrates the issue.

Regards,
Todor
Progress Telerik
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
ANDREY
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or