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

ChildWindow, Commanding and the RadRichTextBox

1 Answer 23 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 29 Apr 2011, 09:06 PM

I'm interested in producing this workflow and looking for either a demo, documentation or guidance.

Importing a file directory document into a current document.  The User opens a ChildWindow, Enter a Title value, Clicks Ok and the event triggers the telerik:RadRichTextBoxRibbonUI.RichTextCommand OpenDocumentCommand.

Any suggestions are appreciated.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 05 May 2011, 05:15 PM
Hello Dave,

I am not quite sure I understand your question.
The OpenDocumentCommand just opens an OpenFileDialog and loads the chosen file in the editor. You can invoke it like this:

this.radRichTextBoxEditor.Commands.OpenDocumentCommand.Execute();

You cannot have another dialog for choosing the file, due to Silverlight's security policies, but as long as you execute the OpenDocumentCommand on button-click, everything should work OK.
You can refer to our online help for some examples on importing contents in the rich text box without using the OpenDocumentCommand.
Let us know if this does not answer your question.


All the best,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Dave
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or