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

Find RadRichTextBox from RadDocument

5 Answers 81 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joël
Top achievements
Rank 2
Joël asked on 19 Oct 2011, 04:45 PM
Hi,

I need to find RadRichTextBox which contains RadDocument of DataField (custom that I created)

5 Answers, 1 is accepted

Sort by
0
Joël
Top achievements
Rank 2
answered on 20 Oct 2011, 07:31 AM
An answer please, I am wedged there.
0
Iva Toteva
Telerik team
answered on 24 Oct 2011, 06:32 PM
Hi Laurent,

I am afraid I don't understand your question.
Are you creating custom documents by inheriting from RadDocument? In general, extending the document element is not supported.
If you share some more details about your scenario, we may be able to suggest a better approach for implementing the required functionality.

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Joël
Top achievements
Rank 2
answered on 25 Oct 2011, 07:37 AM
In fact, I created a CustomDataField, and I would call a method of the RadRichTextBox from my CustomDataField but in CustomDataField, I have access only RadDocument. So I wanted to know if there was any way to recover from the RadRichTextBox RadDocument.
0
Iva Toteva
Telerik team
answered on 27 Oct 2011, 06:01 PM
Hello Laurent,

Unfortunately, this will not be possible. RadDocument is unaware of the existence of RadRichTextBox and does not have a way to obtain a reference to the control that it is displayed in.

If you'd like, you can elaborate on the methods and properties of the rich text box you need to access. When it comes to modifying the document, some of the properties and methods of RadRichTextBox have analogous ones in RadDocument. It's a long shot, but it might be possible to achieve the effect you need using the document's API only.

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Joël
Top achievements
Rank 2
answered on 28 Oct 2011, 09:31 AM
No, it will not meet my needs as it is to call a specific method that I created a heritage of RadRichTextBox. I walk around the problem by creating a Dictionary <MyRadRichTextBox, RadDocument>.
Tags
RichTextBox
Asked by
Joël
Top achievements
Rank 2
Answers by
Joël
Top achievements
Rank 2
Iva Toteva
Telerik team
Share this question
or