RadSpell insinde a user control

2 posts, 0 answers
  1. Richard
    Richard avatar
    2 posts
    Member since:
    Dec 2008

    Posted 05 Feb 2009 Link to this post

    I want to implement RadSpell to work with the RadEditor, inside a user control.
    I cut and paste the code from a previous thread, as follows:

    <telerik:radspell id="spell1" runat="server" buttontype="none" />
    <telerik:radeditor runat="server" id="RadEditor1" EditModes="All" Height="400px" Skin="Default" StripFormattingOnPaste="None" StripFormattingOptions="None" ToolbarMode="Default" Width="680px">
       <telerik:editortool name="SpellCheck" />

      There are somee miztakes in this text
        <SpellCheckSettings SpellCheckProvider="PhoneticProvider" WordIgnoreOptions="RepeatedWords" />
    <script type="text/javascript">
    Telerik.Web.UI.Editor.CommandList.SpellCheck = function(commandName, editor)
     var spell = GetRadSpell('<%= spell1.ClientID %>');
     spell.spellCheck(new PrometheusTextSource(editor));
     return false;
    var PrometheusTextSource = function(editor)
     this._editor = editor;
     this.get_text = function() { return this._editor.get_html(); };
     this.set_text = function(value) { this._editor.set_html(value); };

    However, when when I click on the spell check button, I get the error 'The command SpellCheck is not implemented yet.'. When I view the source, I can't find any reference to the javascript function.
    If I implement the same code outside the user control, everything works fine.

    Can you suggest what I'm doing wrong, and how to put it right?


  2. Rumen
    Rumen avatar
    12788 posts

    Posted 10 Feb 2009 Link to this post

    Hi Richard,

    I tried to reproduce the problem but without success. For your convenience I have attached my test project and a video demonstrating my test. If you are unable to reproduce the problem, please modify the project until it fits your scenario and you are able to recreate the issue. After that open a support ticket and send me the project for examination.

    Best regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top