This is a migrated thread and some comments may be shown as answers.

How to reduce text padding?

7 Answers 221 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 15 Nov 2010, 05:03 PM
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.

7 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 16 Nov 2010, 01:51 PM
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>>
0
Ola Karlsson
Top achievements
Rank 1
answered on 13 Dec 2010, 03:37 AM
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
0
Iva Toteva
Telerik team
answered on 14 Dec 2010, 03:59 PM
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
0
Alex
Top achievements
Rank 1
answered on 16 Dec 2010, 01:18 PM
We also have the same issue and it became quite important. Do you have an estimated date for the release?
Thanks!
0
Iva Toteva
Telerik team
answered on 21 Dec 2010, 04:54 PM
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
0
Herb
Top achievements
Rank 1
answered on 25 Feb 2011, 01:52 AM
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.
0
Iva Toteva
Telerik team
answered on 28 Feb 2011, 06:37 PM
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!
Tags
RichTextBox
Asked by
Alexander
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Ola Karlsson
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Herb
Top achievements
Rank 1
Share this question
or