Autosize radButton to text

2 posts, 0 answers
  1. tyler thompson
    tyler thompson avatar
    13 posts
    Member since:
    Sep 2005

    Posted 30 Jan 2009 Link to this post

    Hello,  I apologize if I am missing something obvious here but, should the radButton be resizing to the text it contains?  If I take a standard button, put long text into it and set autosize = true the button will expand to the size of the text.  Can I do this with the radButton? 

    Thank you,
  2. Victor
    Victor avatar
    1358 posts

    Posted 02 Feb 2009 Link to this post

    Hi tyler thompson,
    Thank you for writing.

    You are not missing anything. You have to set these two properties in order to achieve the automatic resize:
    radButton1.AutoSize = true;  
    radButton1.RootElement.StretchHorizontally = false
    I hope this is what you are looking for. Please write again if something else troubles you.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top