Adding a new button to RadSpell dialouge

Thread is closed for posting
2 posts, 0 answers
  1. Asela Goonatilleke
    Asela Goonatilleke avatar
    2 posts
    Member since:
    May 2010

    Posted 01 Jul 2013 Link to this post


    RadControls   version         2011
    .NET version  4.0
    Visual Studio version   Visual Studio 2010 SP1
    programming language C#
    browser support

    all browsers supported by RadControls

    Dear All,
    We are developing an email kind of application where we need to fire the spell checker when the mail is saved or send out automatically (We allow mail composing on Richtext (Radeditor) and plain text (textarea) modes). On RadEditor the Ajax spell fires with the buttons to Finish spell checking (skip the process and continue with save/ send) and Cancel (which can be canceling the whole process). However when changed to the plain text mode, we use RadSpell for handling the spelling check where we have the issue. As you know the spell checker dialogue has only one close button (which act as canceling the whole process) where our requirement is to provide the user to skip the spell checking and continue with the mail sending process or cancel the whole process. This is very well possible in the AJAX spell checking whereas not possible in RadSpell dialogue as there is only one button.


    With the help from Telerik support team we were able to resolve this by using the DialogsScriptFile property. This allows loading a custom dialogue which can access and change the caption of the existing buttons and add a new button (Finish in my case) dynamically. 
    Please find the sample files with the code snippet attached, I hope it will be helpful for anyone with the similar requirements.

  2. Marin Bratanov
    Marin Bratanov avatar
    5948 posts

    Posted 02 Jul 2013 Link to this post

    Hello Asela,

    I am sure other people will find the idea useful. I have updated your Telerik points for sharing your solution with the community.

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.