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

RichTextBox in TabControl/TabPage

1 Answer 96 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.
Dirk Klimke
Top achievements
Rank 1
Dirk Klimke asked on 28 Apr 2011, 10:00 AM
Hello,

We have a view with a TabControl. This TabControl has two TabItems. One of the TabItems has a RichTextBox control as you can see in the example.
We are using the MVVM pattern and we want to bind a String-property to the RichTextBox-control, which contains HTML-text.
On changing the tab after entering a text, the property in the viewmodel contains still the right HTML-text.
But after re-entering the tab with the RichTextBox, the control only shows an empty document.


Any ideas?

Note: We're unable to upload a sample project. Please tell us how we can upload code samples.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 29 Apr 2011, 06:20 PM
Hi Dirk Klimke,

As discussed in the support ticket, the reason seems to be that the custom control containing a RadRichTextBox is inside a DataTemplate. Declaring the content of the RadTabItems directly, not through a template solved the issue.

Kind regards,
Iva
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
Dirk Klimke
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or