Autoscroll and InlineUIContainer content

4 posts, 0 answers
  1. Piero
    Piero avatar
    2 posts
    Member since:
    Oct 2012

    Posted 10 Mar 2014 Link to this post

    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?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 12 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Piero
    Piero avatar
    2 posts
    Member since:
    Oct 2012

    Posted 21 Mar 2014 in reply to Petya Link to this post

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

    Posted 24 Mar 2014 Link to this post

    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.

     
Back to Top