The size of the item without rounding

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

    Posted 19 Apr 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?

    Thanks!

  2. Todor
    Admin
    Todor avatar
    270 posts

    Posted 22 Apr 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.

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