How to reduce text padding?

8 posts, 0 answers
  1. Alexander
    Alexander avatar
    18 posts
    Member since:
    Jul 2010

    Posted 15 Nov 2010 Link to this post

    Hi,
    I'm trying to reduce the space between RichTextBox borders and the text inside. How can I do this? It looks like there are text paddings of 10 pixels somewhere in the RichTextBox code.
    Thanks.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 16 Nov 2010 Link to this post

    Hi Alexander,

    Indeed there is a minimal margin of 8 dips (pixels) in RadDocument and we currently do not provide API for changing that. We will consider introducing a property for setting it in the next minor release or internal build if possible.
    If you have any other questions, do not hesitate to contact us again.

    Best wishes,

    Iva
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  3. Ola Karlsson
    Ola Karlsson avatar
    9 posts
    Member since:
    Oct 2009

    Posted 12 Dec 2010 Link to this post

    I'm trying to use the RichTextBox in quite a small area and I'd also like to see functionality for changing the margin.

    Cheers,
    Ola
  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 14 Dec 2010 Link to this post

    Hi Ola Karlsson,

     We have scheduled this for the next minor release - Service Pack 1, which is due in a few weeks.
    If you have any other comments, do not hesitate to contact us again.

    Greetings,

    Iva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  5. Alex
    Alex avatar
    30 posts
    Member since:
    Aug 2010

    Posted 16 Dec 2010 Link to this post

    We also have the same issue and it became quite important. Do you have an estimated date for the release?
    Thanks!
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 21 Dec 2010 Link to this post

    Hello Alex,

    We have managed to squeeze it in and it must be included in the Service Pack, which is due in less than a week.
    If you have other questions, do not hesitate to contact us again.

    Kind regards,
    Iva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  7. Herb
    Herb avatar
    3 posts
    Member since:
    Dec 2010

    Posted 24 Feb 2011 Link to this post

    I would also like to reduce the white space between the border of the control and the text for a list of documents.
    I downloaded the SP1 version 2010.3.1314 which says it will..."Introduce property to set the space between RichTextBox borders and the text inside", but what is the name of this new property?

    Thanks.
  8. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 28 Feb 2011 Link to this post

    Hi Herb,

    If you are using a document in flow layout mode, the document will respect the value you set to the Padding property that RadRichTextBox inherits from Control.

    <telerik:RadRichTextBox Name="editor" Padding="0,20,100,60" />

    If you are using paged layout mode, you can set the margin of the document like this:
    <telerik:RadRichTextBox Name="editor" >
        <telerik:RadDocument LayoutMode="Paged" SectionDefaultPageMargin="0,0,0,0" />
    </telerik:RadRichTextBox>

    Best wishes,

    Iva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top