How to increase RadCheckbox size

9 posts, 0 answers
  1. Veshala
    Veshala avatar
    27 posts
    Member since:
    Aug 2009

    Posted 03 Aug 2009 Link to this post

    Hi,

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

    Thanks
    Vanitha
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 04 Aug 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kurt Kremer
    Kurt Kremer avatar
    1 posts
    Member since:
    Oct 2009

    Posted 15 Mar 2010 Link to this post

    Is it correct that you cannot change the checkbox size for checkboxes in the ASP.NET tree control?
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 18 Mar 2010 Link to this post

    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.
  6. Pawan
    Pawan avatar
    7 posts
    Member since:
    Jul 2016

    Posted 20 Oct in reply to Deyan Link to this post

    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!!

  7. Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 20 Oct Link to this post

    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.
  8. Pawan
    Pawan avatar
    7 posts
    Member since:
    Jul 2016

    Posted 20 Oct in reply to Hristo Link to this post

    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

  9. Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 21 Oct Link to this post

    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 the 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.
  10. Pawan
    Pawan avatar
    7 posts
    Member since:
    Jul 2016

    Posted 21 Oct in reply to Hristo Link to this post

    Thank You Sir..!!

    It works......

Back to Top
UI for WinForms is Visual Studio 2017 Ready