The size of the item without rounding

2 posts, 0 answers
    ANDREY avatar
    10 posts
    Member since:
    Nov 2016

    Posted 19 Apr 2019 Link to this post

    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?


  2. Todor
    Todor avatar
    413 posts

    Posted 22 Apr 2019 Link to this post

    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.

    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
Back to Top