This is a migrated thread and some comments may be shown as answers.
How to increase RadCheckbox size
8 Answers 233 Views
This is a migrated thread and some comments may be shown as answers.
Veshala
Top achievements
Rank 1
Veshala asked on 03 Aug 2009, 08:17 PM
Hi,

How to increase the size of rectangle box in RadCheckBox control, not the label text.

Thanks
Vanitha

8 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 04 Aug 2009, 07:25 AM
Hello Veshala,

Thanks for contacting us and for your question.

You can easily increase the size of the box in the RadCheckBox control by setting the MinSize property of the CheckPrimitive which is part of the element tree that builds up the visual hierarchy of the control.
To set the MinSize property of the CheckPrimitive you can follow these steps:

1. Open a Form in Visual Studio and add a RadCheckBox control from the Toolbox.
2. Select the control and from its Smart Tag start Edit UI Elements dialog.
3. In the dialog that shows up select the CheckPrimitive node from the TreeView on the left
4. Set the MinSize property according to your needs from the property grid on the right.
5. You can also set the CheckPrimitiveStyle property to adjust the style of the check mark which is painted in the box.

I have attached some screenshots to guide you through these steps.

Best wishes,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kurt Kremer
Top achievements
Rank 1
answered on 16 Mar 2010, 01:11 AM
Is it correct that you cannot change the checkbox size for checkboxes in the ASP.NET tree control?
0
Veselin Vasilev
Telerik team
answered on 18 Mar 2010, 02:39 PM
Hi Kurt Kremer,

This is a forum thread for the WinForms controls, so I suggest we do not mix the content with the ASP.NET related questions.
As a quick reply to your question - no, this is not possible to change the size of the checkbox html element.

Regards,
Veskoni
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Pawan
Top achievements
Rank 1
answered on 20 Oct 2016, 05:02 AM

Hello Deyan,

How can i increase MinSize of RadioPrimitive of RadRadioButton(winforms) dynamically in VB code 

I have created dynamic radradio buttons in win form and i want to increase its MinSize from RadioPrimitive

Please help!!

0
Hristo
Telerik team
answered on 20 Oct 2016, 01:47 PM
Hi Pawan,

Thank you for writing.

You can access the radio primitive and change its minimum size this way:
RadioPrimitive primitive = this.radRadioButton1.ButtonElement.CheckMarkPrimitive.FindDescendant<RadioPrimitive>();
if (primitive != null)
{
    primitive.MinSize = new Size(primitive.Size.Width * 2, primitive.Size.Height * 2);
}

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Pawan
Top achievements
Rank 1
answered on 21 Oct 2016, 02:48 AM

Hello Sir,

Thank for your reply

I wrote below code,

  Dim rdOptionButton = New RadRadioButton
                rdOptionButton.Text = dr("Options")
                rdOptionButton.Name = dr("Doc_Id")
                rdOptionButton.Font = New Font("Segoe UI", 12, FontStyle.Bold)
                rdOptionButton.AutoSize = True
                rdOptionButton.Location = New System.Drawing.Point(x, y)
                rdOptionButton.EnableTheming = False
               
                Dim primitive As RadioPrimitive = rdOptionButton.ButtonElement.CheckMarkPrimitive.FindDescendant(Of RadioPrimitive)()
                If primitive IsNot Nothing Then
                    primitive.MinSize = New Size(primitive.Size.Width * 2, primitive.Size.Height * 2)
                End If
                Me.RadPanel1.Controls.Add(rdOptionButton)

 

And i got error for this

Error is : 

Error12'CheckMarkPrimitive' is not a member of 'Telerik.WinControls.UI.RadRadioButtonElement'

Please Help

0
Hristo
Telerik team
answered on 21 Oct 2016, 07:18 AM
Hi Pawan,

Thank you for writing.

The CheckMarkPrimitive property was introduced with our Q2 SP1 2016 release. If you are using an older version of the controls you can access element this way: 
Dim primitive As RadioPrimitive = Me.RadRadioButton1.ButtonElement.FindDescendant(Of RadRadiomark).FindDescendant(Of RadioPrimitive)()
If primitive IsNot Nothing Then
    primitive.MinSize = New Size(primitive.Size.Width * 2, primitive.Size.Height * 2)
End If

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Pawan
Top achievements
Rank 1
answered on 21 Oct 2016, 07:30 AM

Thank You Sir..!!

It works......

Asked by
Veshala
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Kurt Kremer
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Pawan
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or