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

How do I make spellchecker unchecked when it loads?

1 Answer 51 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Olga
Top achievements
Rank 1
Olga asked on 10 May 2011, 07:24 PM
Hi,

I want the spell checker toggle button to be unchecked when my application loads. I tried to set it as unchecked in the properties of the toggle button, but it does not seem to work. It still loads as checked.
 

<

 

 

telerik:RadRibbonToggleButton Name="SpellCheckToggleButton" CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleSpellCheckingCommand}" Size="Small" SmallImage="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/EnableSpellCheck.png" ToolTipService.ToolTip="Spell Check" Margin

="2,0,0,0" IsChecked="False" />

I tried to also do the same thing in code instead of xaml, but it still does not work.

Thanks,
Olga

 

 

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 May 2011, 02:03 PM
Hi Olga,

The button is bound to the ToggleSpellCheckingCommand, which updates its state to match the RichTextBox's IsSpellCheckingEnabled property.
If you wish that spell checking be disabled on loading the RadRichTextBox, you should set the IsSpellCheckingEnabled property of RadRichTextBox to False (either in XAML or code-behind) and the button's state will be disabled automatically.
I hope this answers your question.

Best wishes,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Olga
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or