How to implement Expansion Button Functionality?

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

    Posted 25 Jul 2013 Link to this post

    Hi,

    I wants to add the button(Expansion Button) in RadRichTextboxRibbonUI which allow to implement the following functionality.

    When I select a word from the RadRichTextBox and click on Expansion Button, That word allow a area to add more detail information about this word in same window. When I write some more detail about this word and again wants add more detail about any word of that detail information that is Expansion button functionality need to implement in nested structure.

    For reference I have added the picture file for this issue.

    How to implement this scenario in RadRichtextBox


    Please Help

    Regards,

    Sopan Vaidya

  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 29 Jul 2013 Link to this post

    Hi Sopan,

    If I understand your scenario correctly, you are looking for a collapse/expand functionality. RadDocument does not have a mechanism that allows hiding and showing parts of the document, so unfortunately I cannot suggest a way to implement collapsible and expandable regions. 

    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
  4. Sopan
    Sopan avatar
    34 posts
    Member since:
    May 2012

    Posted 29 Jul 2013 Link to this post

    Hi Iva ,

    I have added RadExpander  control dynamically to the RadDocument but when I am going to Copy the RadDocument Content with that control (RadExpander), only content is copied not control.

    so is there any way to copy all the data from raddocument and seperate it as Control and text ?


    Regards
    Sopan Vaidya
  5. Sopan
    Sopan avatar
    34 posts
    Member since:
    May 2012

    Posted 30 Jul 2013 Link to this post

    Hi Iva 

    Is it possible to add a span with some content dynamically to RadDocument Html string (by converting RadDocument to Html using Provider)
    and make it invisible so that the expansion button work. If yes the how ?

    Regards
    Sopan Vaidya
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 02 Aug 2013 Link to this post

    Hello Sopan,

    InlineUIContainers are not copyable elements. Thus, when you copy a part of the document that includes an inline UI container and some text and paste it, only the text will be placed. You can find a more detailed explanation in this forum thread.

    When it comes to inserting text in the document, this can be done through the Insert(string text) method of RadRichTextBox and RadDocumentEditor. Having inserted the string, it will naturally be included in the HTML export.

    I hope this answers your question.

    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 >>
Back to Top
UI for WPF is Visual Studio 2017 Ready