RadRichTextbox goes blank

7 posts, 0 answers
  1. Deepthi
    Deepthi avatar
    11 posts
    Member since:
    Jan 2011

    Posted 19 Jan 2011 Link to this post

    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

     

     

     

     

     

  2. Bob
    Bob avatar
    17 posts
    Member since:
    Jan 2011

    Posted 20 Jan 2011 Link to this post

    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.
  3. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 21 Jan 2011 Link to this post

    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>>
  4. Chandu
    Chandu avatar
    2 posts
    Member since:
    Aug 2010

    Posted 07 Feb 2011 Link to this post

    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.
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 09 Feb 2011 Link to this post

    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>>
  6. Chandu
    Chandu avatar
    2 posts
    Member since:
    Aug 2010

    Posted 09 Feb 2011 Link to this post

    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.

  7. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 10 Feb 2011 Link to this post

    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>>
Back to Top