SpellChecker - How to restrict usage of custom dictionaries...

8 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 21 Nov 2012 Link to this post

    Hello,

    I need to customize the SpellCheckingDialog to remove the "Add To Dictionary" button, and the "Edit Custom Dictionary" button.  How do I do that?  We want to force users to use the default dictionaries only.

    Thanks,
    Rob
  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    104 posts

    Posted 26 Nov 2012 Link to this post

    Hello Rob,

    Here's a sample code snippet how to remove these two buttons within the spell checking dialog at runtime:
    SpellCheckingDialog dialog = (SpellCheckingDialog)this.editor.SpellCheckingDialog;
    RadButton button = (RadButton)dialog.FindName("buttonAddToDictionary");
    (button.Parent as Panel).Children.Remove(button);
    RadButton button2 = (RadButton)dialog.FindName("buttonEditCustomDictionary");
    (button2.Parent as Panel).Children.Remove(button2);

    Another approach is making your own custom spell checking dialog. In order to do that, it would be easiest to download the source of the controls from our site. Then you can copy and modify the existing spell checking dialog. Finally you need to put the following attribute over the dialog class:
    [CustomSpellCheckingDialog]

    In this way it will replace the default implementation.

    Don't hesitate to contact us if you have other questions.

    Regards,
    Martin
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 26 Nov 2012 Link to this post

    OK.  I don't really like these solutions but I'll use it for now.

    Can I request some sort of option in the future like "UseCustomDictionaries"?
  5. Martin Ivanov
    Admin
    Martin Ivanov avatar
    104 posts

    Posted 28 Nov 2012 Link to this post

    Hello Rob,

    We will consider this feature request and can give you a PITS issue which you can use to track our progress. Just a quick question - are you referring to the built-in spell checking of RadRichTextBox or the RadSpellChecker control?

    All the best,
    Martin
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 28 Nov 2012 Link to this post

    Thanks for that...

    We are using the RadRichTextBox and RadRichTextBoxRibbonUI...  I was thinking there might be a property on the RadRichTextBox like "AllowCustomDictinaries" or something similar. 
  7. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 29 Nov 2012 Link to this post

    Hi Rob,

    We will see what the best place for adding such a property is - in RadRichTextBox, the SpellChecker or somewhere else. Here is a PITS issue, look it through and let us know if there is something missing:

    You can follow the PITS Issue by its ID: 13602
    Public Url: http://www.telerik.com/support/pits.aspx#/public/silverlight/13602

    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Pablo
    Pablo avatar
    7 posts
    Member since:
    May 2013

    Posted 28 Jun 2013 Link to this post

    Hi, I'm trying to build my own custom SpellCheckingDialog for a RadRichTextBox, is there any guide you could give me please. I'd be trully grafeful.

    Thanks in advance
  9. Anna
    Admin
    Anna avatar
    99 posts

    Posted 03 Jul 2013 Link to this post

    Hi Pablo,

    Thank you for your question.

    I am attaching a project in which you will find a custom SpellCheckingDialog that we've prepared. You can see that it has the attribute [CustomSpellCheckingDialog] and it inherits the ISpellCheckingDialog interface. From there you don't need to make any additional changes and the RadRichTextBox will recognize the new dialog. In this particular project the content of the custom dialog is identical to the default SpellChecking Dialog, but you are free to remove or add anything you'd like.

    I hope this will be helpful. If you encounter further issues, please, do not hesitate to write.

    Regards,

    Anna
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner