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

RadRichTextbox goes blank

6 Answers 241 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Deepthi
Top achievements
Rank 1
Deepthi asked on 19 Jan 2011, 02:56 PM
Hi,

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

Sort by
0
Bob
Top achievements
Rank 1
answered on 20 Jan 2011, 05:25 PM
We had the same thing here having the whole silverlight app get the white screen of death.

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.
0
Iva Toteva
Telerik team
answered on 21 Jan 2011, 06:30 PM
Hello Deepthi,

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.
Make sure to remove all references of assemblies that you are not using.  Telerik.Silverlight.Controls.Test.Common for example has a dependency on Microsoft.Silverlight.Testing, so if you are using the former, you would have to add a reference to the latter, too.
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.


All the best,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Chandu
Top achievements
Rank 1
answered on 08 Feb 2011, 12:36 AM
Hello Iva,
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.
0
Iva Toteva
Telerik team
answered on 09 Feb 2011, 01:12 PM
Hi 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?

Greetings,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Chandu
Top achievements
Rank 1
answered on 09 Feb 2011, 10:42 PM

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.GridView.dll

 

Telerik.Windows.Controls.Input.dll

 

Telerik.Windows.Controls.Navigation.dll

 

Telerik.Windows.Controls.RichTextBoxUI.dll

 

Telerik.Windows.Data.dll

 

Telerik.Windows.Documents.dll

 

Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll

 

Telerik.Windows.Themes.Office_Blue.dll

All are of same version i.e. 2010.3.1110.1040

Our code is as below:

<UserControl

xmlns:documents="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"

      xmlns:documentsXaml="clr-namespace:Telerik.Windows.Documents.FormatProviders.Txt;assembly=Telerik.Windows.Documents">

<UserControl.Resources>

<documentsXaml:TxtDataProvider x:Key="TextDataProvider"

                                       RichTextBox="{Binding ElementName=radRichtxtEnablingQuestion}"

                                       Text="{Binding ElementName=txtQuestion, Path=Text,Mode=TwoWay}"

                                       SetupDocument="TextDataProvider_SetupDocument" />

 

</UserControl.Resources>

<documents:RadRichTextBox Name="radRichtxtEnablingQuestion" IsSelectionEnabled="False"FontWeight="Normal" FontFamily="Verdana" FontSize="10" Grid.Column="3" Grid.Row="25"BorderThickness="0.5"

                    HorizontalAlignment="Left" Margin="1" VerticalAlignment="Top"Width="350" Height="100" Background="Transparent" OpacityMask="Black" BorderBrush="Black"

                    IsSpellCheckingEnabled="True" VerticalScrollBarVisibility="Auto"HorizontalScrollBarVisibility="Disabled"  />

 

Its working on local development, but not in integration server.


Thanks,
Chandra.

0
Iva Toteva
Telerik team
answered on 10 Feb 2011, 07:44 PM
Hi Chandu,

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.

Greetings,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
RichTextBox
Asked by
Deepthi
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Iva Toteva
Telerik team
Chandu
Top achievements
Rank 1
Share this question
or