Suppress complete message

4 posts, 0 answers
  1. Paul Bacci
    Paul Bacci avatar
    9 posts
    Member since:
    Sep 2004

    Posted 29 Jul 2010 Link to this post

    i am using ASP.NET AJAX Q1 2010.   I would like to suppress the javascript confirm dialog when the user clicks the "Add Custom" button.  I would also like to suppress "the spell check is complete" javascript alert box.  How can i achieve this?  I am using the RadSpell control, not the RadEditor built-in spell checker. 
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 04 Aug 2010 Link to this post

    Hi Paul,

    At present, RadSpell does not offer the possibility to suppers the "Add Custom" confirm dialog. However, we will consider the implementation of this functionality but I cannot provide firm estimate.

    Regarding the "The Spell Check is Complete!" message, you can suppress the JavaScript alert by setting suppressCompleteMessage property of the event handler's arguments to true, e.g.:
    <telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="TextBox1" OnClientCheckFinished="OnClientCheckFinished" />
    <script type="text/javascript">
        function OnClientCheckFinished(sender, args)
            args.suppressCompleteMessage = true;

    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
  3. DevCraft R3 2016 release webinar banner
  4. Markus Wolff
    Markus Wolff avatar
    18 posts
    Member since:
    Feb 2010

    Posted 05 Sep 2012 Link to this post

    I'm working with a newer version (2012.1.215.40), still I cannot find an option to disable the 'added to dictionary' alert. I did a little research on the scripts produced by the editor and came to the following solution. Please note, this is only tested with the above version and quite sure to fail with future releases.

    //function attached to OnClientLoad
    function editorLoaded(editor) {
        editor.add_spellCheckLoaded(function () {
            //override addToCustomDictionary function to suppress confirm message
            //WARNING: This might not work anymore with future versions of Telerik RadControls!
            var spellChecker = editor.get_ajaxSpellCheck();
            spellChecker.addCustomWord = function(a) {
                var e = this.getSpellService();
                var b = this._spellEngine;
                //var c = this._addWordSuccessMessage;
                var d = function() {
                    //alert(a+" "+c);
                    b.clearWrongWords(a, a);
                    var f = b.isHighlightedRemaining();
                    if (!f) {
  5. Sam
    Sam avatar
    60 posts
    Member since:
    Mar 2011

    Posted 19 May 2015 Link to this post

    In case anyone else has come across this issue, this property was changed to a function in Q1 2015

    Convert RadSpell args.suppressCompleteMessage field in the clientCheckFinished event to a method.

Back to Top