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

How to minimize the radcheckbox

6 Answers 80 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 19 Mar 2020, 06:58 AM

Hi, 

I want to know about how to minimize the radcheckbox.

Minimizing radcheckbox is possible. but it has a problem.

When radcheckbox is checked, radcheckbox size are regressed.

I deal withed style builder.

 

Thanks.

6 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Mar 2020, 10:54 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Kim
Top achievements
Rank 1
answered on 23 Mar 2020, 01:14 AM

Thanks.

I want to reduce the size. (checkbox square width, height)

Reducing checkbox size is possible but...

When I click the checkbox, it get back original size.

So, I want checkbox that reduced square size.

0
Kim
Top achievements
Rank 1
answered on 23 Mar 2020, 02:15 AM
example
0
Kim
Top achievements
Rank 1
answered on 23 Mar 2020, 02:15 AM
example
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Mar 2020, 10:48 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Kim
Top achievements
Rank 1
answered on 24 Mar 2020, 02:30 AM
Thanks for the comment!
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Kim
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Kim
Top achievements
Rank 1
Share this question
or