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

Autoscroll and InlineUIContainer content

3 Answers 33 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Piero
Top achievements
Rank 1
Piero asked on 10 Mar 2014, 11:06 AM
I'm using telerik 2013.3.1016.1050 version. I have a richtextbox control with LayoutMode = DocumentLayoutMode.Flow.
This control can contains some InlineUIContainer, each UiElement InlineUIContainer's property contains a custom control.
In my configuration, the richtextbox editor autoscrolls when the user inserts some text if I enable richtextbox's scrollbars, but, when a InlineUIContainer exits from the visible area, it disappears from the RadDocument element.
What should I do to inhibit this behavior?

3 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 12 Mar 2014, 05:10 PM
Hello,

I am afraid I am unable to replicate the behavior you are observing. Could you please provide some more details on your setup? I tried scrolling a document containing an InlineUIContainer so that the container is out of view, but this does not cause the container to disappear on our end. 

If possible, please create a simple sample application and send it to us through a support ticket, so that we can investigate the cause of the issue.

We're looking forward to your reply.

Regards,
Petya
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Piero
Top achievements
Rank 1
answered on 21 Mar 2014, 09:19 AM
Hello, when I made the prototype I founded the bug: I use a dictionary to maintain information of my custom controls, when the radrichtextbox deletes a custom control, I handled the unload event for this control to remove the relation from the structure, only that when the radrichtextbox scrolls a control outside the visible area it disappears from the radrichtextbox, this is the reason for which the control disappears.

Thanks for the help.
0
Petya
Telerik team
answered on 24 Mar 2014, 05:54 PM
Hi Piero,

Thank you for the follow up.

Indeed, when an InlineUIContainer containing an user control is scrolled out of view, the control is removed from the visual tree. This is what causes the Unloaded event to be raised and is most likely what causes the issue on your end.

Let me know if you need any further assistance.

Regards,
Petya
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
RichTextBox
Asked by
Piero
Top achievements
Rank 1
Answers by
Petya
Telerik team
Piero
Top achievements
Rank 1
Share this question
or