Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > radSpell autopostback in Firefox 2.0
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered radSpell autopostback in Firefox 2.0

Feed from this thread
  • Ivan avatar

    Posted on Dec 19, 2007 (permalink)

    Hi All,

    I am having a problem getting consistent behavior with the radSpell control in IE 7 and Firefox 2.0.  I am doing a spellcheck on an imagebutton onclick event which works fine in IE.  The dialog box displays and the spellcheck runs and when I complete the spell check the page posts back and the server side code runs.  However in Firefox, the page posts back before the spellcheck dialog even finishes loading.  I have tried the various solution suggested in the radSpell tips and the forums with no luck.

    Has anyone been able to get this behavior correct in Firefox?  Is it possible?  A code sample would be greatly appreciated.

    Thanks in advance.

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Dec 28, 2007 (permalink)

    Hello Ivan,

    What I can suggest in your case is to use the OnClientClick property where you can call your javascript function and cancel the postback with return false: OnClientClick="myfunction(); return false;"
    Then once the spellcheck is finished, you can submit the form with Javascript.


    I hope this helps. If you still experience problems, please open a support ticket and send us a small sample project which reproduces the problem - we will check it and do our best to help.



    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Bibha avatar

    Posted on Jan 25, 2011 (permalink)

    Hey even i came across the same problem , m able to post back to server once the check is finishes but in this case the server event is getting called before the final changes in the original text box.

     function SpellCheckFinished(sender, args) 
                {
                      __doPostBack('lbtnSaveButton', 'OnClick');
                }

    In this case m posting back to save button's click event but the modification made from spell check dialog box is not setting back to the source text box.

  • Bibha avatar

    Posted on Jan 25, 2011 (permalink)

    Submit to Click event on server after spell check is complete.
    I found the solution..
    May be it can help someone so I am writing it back here.
    // OnClientClick event of button call following method
    function SpellCheck()
    {
     var spellChecker = GetRadSpell('<%= telSpellChecker.ClientID %>');
              spellChecker.startSpellCheck();
              return false;
    }
    //assign following method OnClientCheckFinished event of RadSpell control
     function SpellCheckFinished(sender, args)
     {
                   args.suppressCompleteMessage = true; 
      }
    //assign following method OnClientDialogClosed event of RadSpell control 
     function SpellCheckClosed(sender, args)
     {
              __doPostBack('lbtnSaveBottom', 'OnClick');
      }

    If any one find a better way please comment

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > radSpell autopostback in Firefox 2.0