5 Answers, 1 is accepted
0
Hello Edward,
Could you pleas e clarify what exactly do you mean by "integrated with richtexteditor" ? Do you want to place a RadRIchTextBox inside a RadDiagramShape or the other way around ?
Either way you should not have problems to do it with something like this:
Or something like this for RRTB inside a RadDiagramShape
If you have further questions please feel free to ask.
Regards,
Zarko
the Telerik team
Could you pleas e clarify what exactly do you mean by "integrated with richtexteditor" ? Do you want to place a RadRIchTextBox inside a RadDiagramShape or the other way around ?
Either way you should not have problems to do it with something like this:
<
telerik:RadRichTextBox
>
<
telerik:RadDocument
>
<
telerik:Section
>
<
telerik:Paragraph
>
<
telerik:InlineUIContainer
>
<
telerik:RadDiagram
Width
=
"1000"
Height
=
"600"
>
<
telerik:RadDiagramShape
Geometry
=
"{telerik:ArrowShape ShapeType=DoubleArrow4}"
Position
=
"100 100"
/>
<
telerik:RadDiagramShape
Geometry
=
"{telerik:CommonShape ShapeType=TriangleShape}"
Position
=
"300 100"
/>
</
telerik:RadDiagram
>
</
telerik:InlineUIContainer
>
</
telerik:Paragraph
>
</
telerik:Section
>
</
telerik:RadDocument
>
</
telerik:RadRichTextBox
>
<
telerik:RadDiagram
>
<
telerik:RadDiagramShape
Geometry
=
"{telerik:CommonShape ShapeType=OctagonShape}"
Position
=
"100 100"
>
<
telerik:RadRichTextBox
>
<
telerik:RadDocument
>
<
telerik:Section
>
<
telerik:Paragraph
>
<
telerik:Span
Text
=
"This is some sample text"
></
telerik:Span
>
</
telerik:Paragraph
>
</
telerik:Section
>
</
telerik:RadDocument
>
</
telerik:RadRichTextBox
>
</
telerik:RadDiagramShape
>
<
telerik:RadDiagramShape
Geometry
=
"{telerik:CommonShape ShapeType=TriangleShape}"
Position
=
"300 100"
/>
</
telerik:RadDiagram
>
Regards,
Zarko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Jaypee
Top achievements
Rank 1
answered on 13 Jun 2013, 06:43 AM
Is it possible to have functionality like Insert > RadDiagram
-a rad diagram object appears in the rich text box.
-the user can edit the diagram inside the rich text box.
-the user can save the rich text with the diagram. open it in ms word should be ok.
-a rad diagram object appears in the rich text box.
-the user can edit the diagram inside the rich text box.
-the user can save the rich text with the diagram. open it in ms word should be ok.
0
Hello Jaypee,
RadDiagram integration with RadRichTextBox is in our to-do list, but it has not been scheduled yet, and as of now we are not sure if and when this will be implemented.
You have two options for inserting RadDiagram in RadDocument, but we are not sure is they would satisfy your requirements:
Regards,
Boby
Telerik
RadDiagram integration with RadRichTextBox is in our to-do list, but it has not been scheduled yet, and as of now we are not sure if and when this will be implemented.
You have two options for inserting RadDiagram in RadDocument, but we are not sure is they would satisfy your requirements:
- insert as Image - you may come with solution that converts the RadDiagram object to image and insert it in the RadDocument with the InsertImage method of RadRichTextBox/RadDocumentEditor. You won't be able to edit the inserted diagram tough.
- insert the RadDiagram object as InlineUIContainer. This way RadDiagram will be inserted as is, preserving the object interactivity, but you won't be able to preserve document structure - e.g. saving and then loading the document will not succeed, or will convert the InlineUIContainer to image, depending on the format and export settings.
Regards,
Boby
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
Jaypee
Top achievements
Rank 1
answered on 18 Jun 2013, 02:11 AM
radrichtext box does not have insert shapes?
0
Hello Jaypee,
RadDocument's model doesn't support shapes natively. You can read more about the available DocumentElements here, but as I mentioned, the options in your scenario are to use ImageInlines or InlineUIContainers.
Regards,
Boby
Telerik
RadDocument's model doesn't support shapes natively. You can read more about the available DocumentElements here, but as I mentioned, the options in your scenario are to use ImageInlines or InlineUIContainers.
Regards,
Boby
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.