How to create Regions like MS Word in RadRichTextBox ?

2 posts, 0 answers
  1. Sopan
    Sopan avatar
    34 posts
    Member since:
    May 2012

    Posted 07 Aug 2013 Link to this post

    Hi,

    I wants t create the functionality like Region available in Visual Studio which allow to expand and collapse the code or text.

    How to imlement ?

    Please help or suggest.



    Thanks & Regards

    Sopan Vaidya
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 09 Aug 2013 Link to this post

    Hi Sopan,

    As discussed in this forum thread RadRichTextBox does not support collapsible and expandable regions and this functionality cannot be achieved with the current version of the control. Your approach described in the other forum - using InlineUIContainers with RadExpander in them - does not present a viable option due to the following limitations:

    1. InlineUIContainers are not resizable and copyable. Thus, there will be no way to achieve a smooth editing experience.

    2. Even if you use RadRichTextBoxes in the RadExpanders, the commands from the RibbonUI cannot be made to work with these elements.

    3. There are some limitations with the export and import of InlineUIContainers, described in this article.

    This said, unfortunately the conclusion is that at this point collapse/expand functionality cannot be achieved in RadRichTextBox.


    Regards,
    Iva Toteva
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top