Current filter:
                                You should refresh the page.

                                Starting with version 18.1, the ASPxRichEdit control provides the insertRtf command, which allows you to add formatted RTF content at the specified position.

                                In versions prior to 18.1, ASPxRichEdit doesn't provide a functionality to insert RTF formatted text on the client side so that this format is applied automatically. This example demonstrates a workaround that allows you to insert formatted RTF text to the current document on a button click via an ASPxRichEdit callback.

                                To implement this scenario, initiate an ASPxRichEdit custom callback via the client-side ASPxClientRichEdit.PerformCallback method and handle the server-side ASPxRichEdit.Callback event. To add the required text in this event handler, you can use the AppendRtfText method of our non-visual RichEditDocumentServer component.
                                To insert this text at the current caret position in the middle of a document text, obtain this position on the client side by using the RichEditSelection.intervals array object and pass it to the server as a parameter of the ASPxClientRichEdit.PerformCallback method. Then, access this passed value in the server-side Callback event handler and use it to modify the current document position via the Document.CreatePosition method before inserting RTF text.

                                See also

                                RichEdit - How to insert RTF text to a document

                                Files to look at:

                                Default.aspx (VB: Default.aspx)
                                Default.aspx.cs (VB: Default.aspx.vb)