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

Reduce the Checkbox width

1 Answer 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashith Rai
Top achievements
Rank 1
Ashith Rai asked on 10 Oct 2018, 06:16 PM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 15 Oct 2018, 01:56 PM
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
Tags
General Discussions
Asked by
Ashith Rai
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or