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

Any integration with RichtextEditor?

5 Answers 82 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 29 Aug 2012, 05:18 PM
I am just wondering if this can be integrated with richtexteditor?  

5 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 31 Aug 2012, 12:25 PM
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:
<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>
Or something like this for RRTB inside a RadDiagramShape
<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>
If you have further questions please feel free to ask.

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.
0
Boby
Telerik team
answered on 13 Jun 2013, 05:21 PM
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:
  • 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
Boby
Telerik team
answered on 19 Jun 2013, 12:20 PM
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

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Edward
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Jaypee
Top achievements
Rank 1
Boby
Telerik team
Share this question
or