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

SpellChecker not working on subclass of RadTextBox

4 Answers 114 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Govinda
Top achievements
Rank 1
Govinda asked on 16 Mar 2012, 03:00 PM
Hello,

I would like to use the functionality of the RadTextBox and SpellChecker, but I also need to use my framework's databinding interface. So I created a subclass of the RadTextBox control and implemented the interface for binding.

public partial class SFRadTextBox : RadTextBox, IBusinessBindable

After calling spellChecker1.Check(sfRadTextBox1) I get the following error:

NotSupportedException
  No spell check for GKGInc.i2Catalog.Controls.SFRadTextBox is not supported.
   You should implement IControlSpellChecker interface.
 
Source     : MicroFour StrataFrame Business
 
Stack Trace:
   at Telerik.WinControls.UI.RadSpellChecker.Check(Control editControl)

Why isn't it picking up on the fact that the base class has the IControlSpellChecker interface implemented arleady?
Can someone please tell me what I'm doing wrong here and what I should be doing to get this working.

Thank You,
Govinda

4 Answers, 1 is accepted

Sort by
0
Accepted
Svett
Telerik team
answered on 19 Mar 2012, 10:23 AM
Hello Govinda,

We are aware of this limitation. We have already addressed it for the up coming service pack which should be live by the end of this week. In the meantime, you should register the text box spell checker for the SFRadTextBox control:

RadSpellChecker spellChecker = new RadSpellChecker();
spellChecker.RegisterControlSpellCheker(typeof(SFRadTextBox), new TextBoxSpellChecker());

I hope this helps.

All the best,
Svett
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Govinda
Top achievements
Rank 1
answered on 20 Mar 2012, 04:08 PM
Thanks.
That got it working.
I look forward to the upcoming service pack, though.

Govinda
0
Timothy
Top achievements
Rank 1
answered on 27 Dec 2012, 08:30 PM
Did you notice that RegisterControlSpellCheker is misspelled? "Cheker" should be "Checker". Kind of a funny place to have a misspelling.

And I'm not just talking about in this article, that's the actual function name in the spell checker control.
0
Stefan
Telerik team
answered on 28 Dec 2012, 12:42 PM
Hi Timothy,

Thank you for this report. We will address the typo accordingly. 

All the best,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
TextBox
Asked by
Govinda
Top achievements
Rank 1
Answers by
Svett
Telerik team
Govinda
Top achievements
Rank 1
Timothy
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or