Completed
Last Updated: 28 Nov 2014 05:53 by ADMIN
ADMIN
Stefan
Created on: 05 Jul 2013 00:57
Category:
Type: Bug Report
1
FIX. RadRichTextBox - does not call the EnsureDictionaryLoaded, thus custom dictionaries are not loaded
To reproduce: 
public class SwedishDictionary : WordDictionary
{
      protected override void EnsureDictionaryLoadedOverride()
     {
           using (MemoryStream ms = new MemoryStream(Properties.Resources.sv_SE))
          {
                this.Load(ms);
          }
    }
}

Workaround - call the method in the constructor: 

public class SwedishDictionary : WordDictionary
{
      public SwedishDictionary()
      {
            this.EnsureDictionaryLoaded();
      }
 
      protected override void EnsureDictionaryLoadedOverride()
     {
           using (MemoryStream ms = new MemoryStream(Properties.Resources.sv_SE))
          {
                this.Load(ms);
          }
    }
}

Resolution: 
This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. 
0 comments