I am using a RadRichTextbox in my application, and the page goes blank if I try to add some text in it. My page has a stackpanel inside which there is
<telerik:RadRichTextBoxRibbonUI>
and
<
telerik:RadRichTextBox>
Please help!
Thanks,
Deepthi P
6 Answers, 1 is accepted
I got it working by removing the reference to System.Windows.Controls.Toolkit. Finding that dll again, and re-referencing it.
I also uuninstalled the Telerik stuff and reinstalled(SP1 is out now). Then it worked fine.
If you are encountering what is called "White Screen of Death", the reason is most probably an unhandled exception. In Firefox, after the WSOD, you can go to tools->Error Console, scroll to the bottom and see the exception trace.
As you describe it, I guess the cause is that MEF (Managed Extensibility Framework), which RadRichTextBox uses internally, has "Failed to load one or more of the requested types". This error occurs when one of the assemblies referenced in your project has a dependency on an assembly that is not referenced.
The assembly references you need to have for all functionalities of RadRichTextBox are:
- Telerik.Windows.Documents;
- Telerik.Windows.Controls;
- Telerik.Windows.Controls.Input;
- Telerik.Windows.Controls.Navigation;
- Telerik.Windows.Controls.RibbonBar;
- Telerik.Windows.Controls.RichTextBoxUI.
For import from/ export to different file formats, you would need references to:
- Telerik.Windows.Documents.FormatProviders.OpenXml for DOCX;
- Telerik.Windows.Documents.FormatProviders.Html for HTML;
- Telerik.Windows.Documents.FormatProviders.Xaml for XAML.
- Telerik.Windows.Documents.FormatProviders.Pdf for PDF (export only).
The default en-US dictionary for SpellChecking is located in:
- Telerik.Windows.Documents.Proofing.Dictionaries.En-US.
As Bob said (thanks for sharing your experience by the way), some assemblies from the Silverlight toolkit also have assembly dependencies.
You should also verify that you have referenced all assemblies from one and the same version of the controls.
If this does not help you solve the issue, we would appreciate some more information of the assemblies you are using in your application or the exception trace if I was wrong in my guess.
Iva
the Telerik team
Basically, We are using RadRichTextBox in our silverlight application. It works fine on local development machines. Screen goes blank on Integration Server. I did not find any Telerik.Windows.Documents.FormatProviders.Txt.dll in (local) telerik folder.
Let me know do we really need this dll to make radRichTextBox work. Could you let me know whats the solution for this issue.
We are in integration right now. I request you guys to reply to this ASAP.
Thanks,
Chandra.
I am sorry, that was a mistake on my part. There is no Telerik.Windows.Documents.FormatProviders.Txt assembly and the TxtFormatProvider, as well as the TxtDataProvider are included in the assembly Telerik.Windows.Documents.
A possible cause for the blank screen can be mismatched version of the assemblies or having references to assemblies that have dependencies on unreferenced ones. Could you please give us some insight on what assemblies you are using?
Iva
the Telerik team
Hello Iva,
I really appreciate for your reply. Hope you could resolve this issue soon.
I have used below references.
Telerik.Windows.Controls.dll
Telerik.Windows.Controls.
Telerik.Windows.Controls.
Telerik.Windows.Controls.
Telerik.Windows.Controls.
Telerik.Windows.Data.dll
Telerik.Windows.Documents.dll
Telerik.Windows.Documents.
Telerik.Windows.Themes.Office_
All are of same version i.e. 2010.3.1110.1040
Our code is as below:
<UserControl
xmlns:documents="clr-
xmlns:documentsXaml="clr-
<UserControl.Resources>
<documentsXaml:TxtDataProvider x:Key="TextDataProvider"
</UserControl.Resources>
<documents:RadRichTextBox Name="
Its working on local development, but not in integration server.
Thanks,
Chandra.
There is one assembly reference missing - Telerik.Windows.Controls.RibbonBar. Adding it to your project should solve the problem.
Please, let us know how it goes.
Iva
the Telerik team