4 posts, 0 answers
  1. Ceramist
    Ceramist avatar
    31 posts
    Member since:
    Aug 2008

    Posted 27 Jul 2010 Link to this post

    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.
  2. Ivailo Karamanolev
    Ivailo Karamanolev avatar
    276 posts

    Posted 02 Aug 2010 Link to this post

    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,
    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
  3. DevCraft R3 2016 release webinar banner
  4. Pablo
    Pablo avatar
    7 posts
    Member since:
    May 2013

    Posted 10 May 2013 Link to this post

    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.
  5. Petya
    Petya avatar
    973 posts

    Posted 15 May 2013 Link to this post

    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:
    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top