SpellChecker not working on subclass of RadTextBox

5 posts, 1 answers
  1. Govinda
    Govinda avatar
    7 posts
    Member since:
    Jul 2008

    Posted 16 Mar 2012 Link to this post


    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:

      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,
  2. Answer
    Svett avatar
    728 posts

    Posted 19 Mar 2012 Link to this post

    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,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. Govinda
    Govinda avatar
    7 posts
    Member since:
    Jul 2008

    Posted 20 Mar 2012 Link to this post

    That got it working.
    I look forward to the upcoming service pack, though.

  4. Timothy
    Timothy avatar
    37 posts
    Member since:
    Nov 2012

    Posted 27 Dec 2012 Link to this post

    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.
  5. Stefan
    Stefan avatar
    2908 posts

    Posted 28 Dec 2012 Link to this post

    Hi Timothy,

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

    All the best,
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top