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

RichTextBox initializes with a single space character

2 Answers 42 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 05 Aug 2010, 10:46 PM
Is there anyway to the get the RadRichTextBox to initialize with no text?  From what I can tell the default initialization of a RichTextBox includes a single space. 

I've tried using this, but it throws a NullReferenceException.

RichTextBox.SetText("");

2 Answers, 1 is accepted

Sort by
0
GEB
Top achievements
Rank 1
answered on 06 Aug 2010, 12:25 PM
Ben, I saw this same behavior in the Q2 released version, but it seems to have gone away with the 7/30 internal build.
0
Ivailo Karamanolev
Telerik team
answered on 06 Aug 2010, 03:54 PM
Hello Ben,

Until now, all paragraphs had to be non-empty, so "empty" paragraphs contained a single span with a space. With the SP1 release coming next week, we'll be introducing support for actually empty paragraphs with no inlines in them. That should allow you to construct a document with a single section and paragraph, but without any spans. I hope that will resolve your issues. Please let us know if you need any further assistance.

Best wishes,
Ivailo
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
Tags
RichTextBox
Asked by
Ben
Top achievements
Rank 1
Answers by
GEB
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or