
we have implemented Q3 2010 richtextbox into our prism application and the issue is that none of the popup windows work anymore.
for example, when these actions are done, no window pops up.
- right click on text to display formatting menu
- find button
- insert hyperlink
- insert symbol
any ideas on things that might cause all of the popup windows to stop working in the richtextbox when implemented in a prism application?
the richtextbox seems to behave properly in a standard silverlight app.
13 Answers, 1 is accepted
All additional UI components for RadRichTextBox, including ContextMenu, SelectionMiniToolBar and all dialogs are located in Telerik.Windows.Controls.RichTextBoxUI.dll, which in its part depends on Telerik.Windows.Controls.dll, Telerik.Windows.Controls.Input.dll, Telerik.Windows.Controls.Navigation and Telerik.Windows.Controls.RibbonBar.dll. Those UI components are loaded by MEF, so you won't have compile-time errors for missing dependencies.
Could you please verify you have added references to all these assemblies?
Greetings,
Boby
the Telerik team


so how can i get the benefits of application library caching and have the popup windows work and spell check?
All additional UI components and dictionaries are normally instantiated by MEF. If application library caching is turned on, when MEF tries to find types they are in the assemblies still on the server, thus they cannot be loaded.
As a workaround you can manually instantiate them and set the following properties:
this
.rtb.FindReplaceDialog =
new
FindReplaceDialog();
this
.rtb.InsertHyperlinkDialog =
new
RadInsertHyperlinkDialog();
this
.rtb.ParagraphPropertiesDialog =
new
RadParagraphPropertiesDialog();
this
.rtb.InsertSymbolWindow =
new
RadInsertSymbolDialog();
this
.rtb.ContextMenu =
new
ContextMenu();
this
.rtb.SelectionMiniToolBar =
new
SelectionMiniToolBar();
this
.rtb.InsertTableDialog =
new
InsertTableDialog();
this
.rtb.TablePropertiesDialog =
new
TablePropertiesDialog();
this
.rtb.FontPropertiesDialog =
new
FontPropertiesDialog();
((DocumentSpellChecker)
this
.rtb.SpellChecker).AddDictionary(
new
RadEn_USDictionary(), CultureInfo.InvariantCulture);
Don't hesitate to contact us if this doesn't help.
All the best,Boby
the Telerik team


this.txtRR.InsertSymbolWindow = new RadInsertSymbolDialog();
DocumentSpellChecker)this.txtRR.SpellChecker).AddDictionary(new RadDictionary(), CultureInfo.InvariantCulture);
.txtRR.FindReplaceDialog = new FindReplaceDialog();
.txtRR.InsertHyperlinkDialog = new RadInsertHyperlinkDialog();
Its give me error when open it. the error is "Value does not fall within the expected Range." and when press OK
it open the correct pop up window. i can't understand what that error is??
can you please advice?
Thanks
Jaimin
We used to have this problem, but it was related to the RadRichTextBoxRibbonUI and has already been fixed. If you are using one of the latest releases - Q1 (2011.1.315) or Q1 SP1 (2011.1.419), this error should not be appearing. Provided that is not the case, we would greatly appreciate a sample project to help us track down the issue.
Best wishes,Iva
the Telerik team

Thanks for the Reply,
i download the latest version. still issue is there. i am getting that message before open up the window.
Then i try to create the sample project, its working well. the message not appearing before opening the pop up Window.
so i am not sure what i am doing wrong in my original project.
Any idea?
Thanks
Jaimin
If you are using the application "library caching" option in your project, please refer to Borislav's solution below.
Best wishes,Mike
the Telerik team

Can you please advice me
((DocumentSpellChecker)
this
.rtb.SpellChecker).AddDictionary(
new
RadEn_USDictionary(), CultureInfo.InvariantCulture);
what is RadEn_USDictionary()?
RadEn_USDictionary is the default dictionary for spell checking in English, which is included in the Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll. You can read more on spell checking in different languages in our online documentation.
Best wishes,Iva
the Telerik team

Thanks for your reply.
Is RichtextBox support Tab spacing correctly? because its not same as Microsoft Word.
in Word default tab stop is 1.27 cm.
while RichtextBox doesnt seem to handle tabs very well - the tab is only 2.5 chars worth.
please advice.
Jaimin
Currently tabs in RadRichTextBox have constant width which is equal to what tab look like in the standard Silverlight TextBox. We are planning to add support for tab stops similar to MS Word In some of the upcoming releases, however currently I cannot specify the timeline for the availability of the feature.
Best wishes,
Vesko
the Telerik team