Completed
Last Updated: 19 Oct 2021 15:41 by ADMIN
Release R3 2021 SP1
Bob
Created on: 18 Oct 2021 10:38
Category: UI for WinForms
Type: Bug Report
0
RadRichTextEditor: Built-in spellchecking is not working in .NET Core
1. Create a new windows forms .net 5.0 project

2. Add a richtexteditor control to the form

3. Set IsSpellCheckingEnabled = true

4. Run the project, type invalid word in text box.  The text is not spell-checked.
1 comment
ADMIN
Hristo
Posted on: 18 Oct 2021 10:40

Hi Bob,

A possible workaround is to explicitly load a dictionary for the "en-US" culture: 

namespace RteSpellcheckNetCore
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Stream tdfFileStream = typeof(Form1).Assembly.GetManifestResourceStream("RteSpellcheckNetCore.en-US.tdf");
            RadDictionary dictionary = new RadDictionary();
            dictionary.Load(tdfFileStream);
            ((DocumentSpellChecker)this.radRichTextEditor1.SpellChecker).AddDictionary(dictionary, new CultureInfo("en-US"));
        }

    }
}

Here you can download dictionaries for different cultures: https://www.telerik.com/support/code-library/dictionaries-for-radspellchecker. Then you will need to embed the downloaded file as a resource in your project.

Regards,
Hristo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.