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

[Solved] SpellCheckingDialog Issue

1 Answer 119 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rehmatullah
Top achievements
Rank 1
Rehmatullah asked on 20 Jul 2011, 04:32 PM
Hi,

this.radRichTextBox1.SpellCheckingDialog = new SpellCheckingDialog();

i have RadRTB and on top of that 4 buttons (Bold, Italic and Underline) and last is for spell check.  I tried many things but was unable to get the SpellCheckDialog. the above mentioned code i tried as well but give me syntax error that SpellCheckingDialog Class not found.

Cany ou please provide me with simple and clean example. that OnCLick of SpellCheck button SpelLChecjk Dialog should appear and on right click of wrong i can also see suggestions.

Kindly let me k now as soon as possible.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 22 Jul 2011, 03:10 PM
Hello Rehmatullah,

The issue is probably related to a missing assembly reference. Could you make sure that you have added all required dlls, as listed here and have included the following using declaration:

using Telerik.Windows.Controls.RichTextBoxUI.Dialogs;

As for showing the SpellCheckingDialog, this can be done either using the command (like done in the online demo):
<telerik:RadRichTextBoxRibbonUI ApplicationButtonImageSource="/RichTextBox;component/Images/RichTextBox/MSOffice/AppIcon-telerik.png" ApplicationName="Telerik Editor" DataContext="{Binding Path=Commands, ElementName=editor}" Name="radRichTextBoxRibbonUI">
                             ***
   <telerikRibbonBar:RadRibbonButton LargeImage="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/EnableSpellCheck.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ShowSpellCheckingDialogCommand}" Size="Large" Text="Spell Check" />
                             ***
</telerik:RadRichTextBoxRibbonUI>
where editor is the name of the RadRichTextBox instance.
The other option would be to use the method ShowSpellCheckingDialog on button-click:
<Button Name="showSpellCheckingDialog" Click="showSpellCheckingDialog_Click" Content="Show SpellCheckingDialog" />
private void showSpellCheckingDialog_Click(object sender, RoutedEventArgs e)
{
    this.editor.ShowSpellCheckingDialog();
}

The context menu is enabled by default and if you have added a reference to the assembly containing the dictionary, suggestions for the misspelled words will be offered.
You can also find attached a sample demo.

Greetings,
Ivailo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
Rehmatullah
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or