6 Answers, 1 is accepted
Hello, Kim,
Could you please give us some more details about what exactly do you mean with minimizing RadCheckBox? Sample screenshots illustrating the desired goal that you are trying to achieve would be greatly appreciated for better understanding of the specific requirement. Thus, we would be able to think about a suitable solution and provide further assistance.
Thank you in advance for your cooperation, I am looking forward to your reply.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Hello, Kim,
I am glad that you succeeded to reduce the size of the checkbox. As to the question about returning back to its default size when the checkbox is toggled, I would recommend you to perform the resize operation in the respecting cell formatting/ item formatting event considering the control in which the checkbox is used, e.g. for RadGridView, use the CellFormatting event, for RadPropertyGrid, use the ItemFormatting event, etc.
For the RadCheckBox control itself, using the following code snippet, keeps the checkbox with fixed size no matter how many times it is toggled:
this.radCheckBox1.ButtonElement.CheckMarkPrimitive.MaxSize = new Size(10, 10);
this.radCheckBox1.ButtonElement.CheckMarkPrimitive.CheckElement.MaxSize = new Size(8, 8);
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik