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
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