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

InlineUIcontainer

3 Answers 131 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ceramist
Top achievements
Rank 1
Ceramist asked on 27 Jul 2010, 03:54 PM
The InlineUIContainer of RichTextBox control permits users to participate in the composition of visual documents by inserting controls onto the text page of the control.  In my application, the user writes a report and inserts into the report a UserControl showing one (or more) customer's information via a DataForm (ReadOnly).  The application is written using MVVM where the ViewModel controls the state of the data.  What I would like to learn is how each UserControl inserted into the document could obtain a specific state or refers to a specific customer data.  Since the RichTextBox contains a control, the user could select from the DataForm (when the control is in ReadOnly mode) the specific customer.  But the goal is to insert a control refering to data for a specific customer, ultimately save the XAML to a database and then reconstructing the report using XAML from the database.

3 Answers, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 02 Aug 2010, 04:11 PM
Hi Ceramist,

Unfortunately, currently we don't support serializing InlineUIContainers. This feature in our development plans, but I cannot specify any timeframe for its development yet. Our plans involve introducing API (events and virtual methods of FormatProviders) that will allow developer to implement its own approach for serialization.
Let us know if you have any suggestions about how do you expect this feature to work or if you need any further assistance.

Sincerely yours,
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
0
Pablo
Top achievements
Rank 1
answered on 10 May 2013, 08:58 PM
We're having an issue, you'll see, we've got 2 RadPaneGroup, in one we've got a RadRichTextbox and in the other a RadGridView, these 2 panels are asigned to a RadSplitContainer in execution time when we clic in their respective RadRibbonToggleButtons, so we can switch beetween them, the problem es that when we back to the RadRichTextBox panel we lost the caret position and the Focus goes on a InlineUIContainer from the document loaded on the RadRichTextBox, we don't want this behaivor, we would like that the caret and the focus stayed at the position were left before we switched the panel.
How can we control this behaivor?

Thanks in advance.
0
Petya
Telerik team
answered on 15 May 2013, 04:50 PM
Hi Pablo,

I tried reproducing the problem you are observing, but to no avail. 

What I tried is creating a setup similar to the one you explained and loading a RadDocument  which contains an InlineUIContainer with TextBox in it in RadRichTextBox. I could verify that the whole RadRichTextBox loses focus when changing between the two panels, however the text box in the inline container did not receive the focus.

In this regard, you can handle the MouseLeftButtonUp event of RadPane and focus the RadRichTextBox manually as follows:
this.radRichTextBox.Focus();
In this case the caret should return at the same position it was prior to changing the panels.

I hope this is helpful! Let us know if you have other comments or questions.
 
Kind regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Ceramist
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Pablo
Top achievements
Rank 1
Petya
Telerik team
Share this question
or