How to minimize the radcheckbox

7 posts, 0 answers
  1. Kim
    Kim avatar
    7 posts
    Member since:
    Oct 2019

    Posted 19 Mar Link to this post

    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.

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3713 posts

    Posted 19 Mar Link to this post

    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.
  3. Kim
    Kim avatar
    7 posts
    Member since:
    Oct 2019

    Posted 22 Mar Link to this post

    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.

  4. Kim
    Kim avatar
    7 posts
    Member since:
    Oct 2019

    Posted 22 Mar in reply to Kim Link to this post

    example
  5. Kim
    Kim avatar
    7 posts
    Member since:
    Oct 2019

    Posted 22 Mar in reply to Kim Link to this post

    example
  6. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3713 posts

    Posted 23 Mar Link to this post

    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.
  7. Kim
    Kim avatar
    7 posts
    Member since:
    Oct 2019

    Posted 23 Mar in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thanks for the comment!
Back to Top