Completed
Last Updated: 09 Aug 2016 10:06 by ADMIN
ADMIN
Dimitar
Created on: 14 Jul 2016 05:39
Category: Editors
Type: Bug Report
0
FIX. RadSpellChecker - the localization provider does not change the "Ignore All" and "Add To Dictionary" strings in the context menu.
To reproduce:
- Use the SpellCheck as you type functionality with RadTextBox.
- The "Ignore All" and "Add To Dictionary" strings in the context menu are not changed.

Workaround:
public RadForm1()
{
    InitializeComponent();
    radSpellChecker1.AutoSpellCheckControl = radTextBox1;
    TextBoxSpellChecker textBoxControlSpellChecker = this.radSpellChecker1.GetControlSpellChecker(typeof(RadTextBox)) as TextBoxSpellChecker;
    textBoxControlSpellChecker.DropDownMenu.DropDownOpened += DropDownMenu_DropDownOpened;
}

private void DropDownMenu_DropDownOpened(object sender, EventArgs e)
{
    var menu = (RadDropDownMenu)sender;

    foreach (var item in menu.Items)
    {
        if (item.Text == "Add To Dictionary")
        {
            item.Text = "test";
        }
        if (item.Text == "Ignore All")
        {
            item.Text = "test";
        }
    }
}
0 comments