Reduce the Checkbox width

2 posts, 0 answers
  1. Ashith Rai
    Ashith Rai avatar
    2 posts
    Member since:
    Oct 2018

    Posted 10 Oct 2018 Link to this post

    Hi,

    I have been trying to reduce the checkbox width (Please refer to the attached image) by setting the size property.

    this.checkBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(2D), Telerik.Reporting.Drawing.Unit.Inch(0.079999998211860657D));

    The height attribute works but when I try to change the width, the text part of the checkbox is getting cut off. It's very frustrating as I have spent a lot of time on it without getting the desired result.

    Can you please assist me this issue.

    Thanks,

    Ashith.

     

     

  2. Todor
    Admin
    Todor avatar
    248 posts

    Posted 15 Oct 2018 Link to this post

    Hi Ashith,

    I was able to reproduce the described behavior upon decreasing the width of the CheckBox and setting CanGrow to False. The latter suspended vertical grow, hence the text was cut when overflowing the available space.

    If you set CanGrow to True, the CheckBox should be able to render the entire text by transferring the overflowing text on the next line, i.e. increasing item height.

    The item content is rendered from left to right and from top to bottom. The width of the report item (except SubReport item) is generally fixed (i.e. cannot grow except in case of custom Binding/Conditional Formatting). The item grows vertically, i.e. when the content cannot fit within the design-time boundaries, the item will accommodate its content by increasing its height. This can be controlled by the properties CanGrow (default is True) and CanShrink (default is False) - check Growing and Shrinking.

    If the case is different, consider sending us a sample report definition demonstrating the problem. You can do this by uploading the report/project in the cloud and sharing the link - note that the link shared in a Forum post will be accessible to all our users.
    You may also open a support ticket and attach the zipped report to the message.

    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