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

How to implement Expansion Button Functionality?

4 Answers 44 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Sopan
Top achievements
Rank 1
Sopan asked on 25 Jul 2013, 06:11 AM
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

4 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 29 Jul 2013, 04:47 PM
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 >>
0
Sopan
Top achievements
Rank 1
answered on 30 Jul 2013, 04:13 AM
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
0
Sopan
Top achievements
Rank 1
answered on 30 Jul 2013, 07:17 AM
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
0
Iva Toteva
Telerik team
answered on 02 Aug 2013, 06:05 PM
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 >>
Tags
RichTextBox
Asked by
Sopan
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Sopan
Top achievements
Rank 1
Share this question
or