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

Adding a plane document

2 Answers 32 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
prog1
Top achievements
Rank 1
prog1 asked on 01 Sep 2010, 01:10 PM
I want to add a plane document like you have it in the RadRichTextbox-Binding example by code.
Unfortunatly I don't get i to work. How to get the cursor into Textbox and how to avoid the margins?
If I want to see the cursor blinking I have to press a button on my Ribbon above like "Bold"

Here is what I do:
radRichTextBox1.Document = new Telerik.Windows.Documents.Model.RadDocument();
radRichTextBox1.UpdateEditorLayout();

What else has to be set on document? PageViewMargin?
Seems like a bug, bacause I'm having problems to step in and step out the RichTextBox.
If I just put a RichTexBox on a page it is focused and I can write something. Even without document.
If I leave the box I'm not able to return into it.

2 Answers, 1 is accepted

Sort by
0
prog1
Top achievements
Rank 1
answered on 01 Sep 2010, 02:21 PM
My fault, after upgrade to 2010_2_0812 no problems with stepping in and out of the combobox.
Margins could be edited with the "SectionDefaultPagMargin" of the document but I now just do not add a new one.
0
Ivailo Karamanolev
Telerik team
answered on 01 Sep 2010, 03:13 PM
Hi prog1,

I'm glad to hear all your issues are now resolved. Feel free to get back to us 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
prog1
Top achievements
Rank 1
Answers by
prog1
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or