This is a migrated thread and some comments may be shown as answers.

Telerik.Web.UI.Spell has no properties while starting to spell check

1 Answer 53 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Kok Soon
Top achievements
Rank 1
Kok Soon asked on 27 May 2008, 03:20 AM
Hi telerik support team:

                   Currently i am using telerik spell check control to perform spell check and encounter this error. After investigation, i notice that the script to register namespace Type.registerNamespace("Telerik.Web.UI.Spell"); is not loaded in to browser and cause HtmlElementTextSource is undefined in the code.
 
                    Together i attached with my coding to facilitate your investigation.

function startSpell()
{
        GetSources();
        var spell = GetRadSpell('<%= SpellCheckerTop.ClientID %>');
        spell.set_textSource(new MultipleTextSource(sources));
        spell.startSpellCheck();
}

function GetSources()
{
    sources = new Array();
    var i;
    var j = 0;
    for (i=0; i < document.forms[0].elements.length; i++)
    {
               if ((document.forms[0].elements[i].name.indexOf('spellCheckQuestion') > -1) || (document.forms[0].elements[i].name.indexOf('spellCheckAnswers') > -1))
            {
                sources[j] = new Telerik.Web.UI.Spell.HtmlElementTextSource(document.forms[0].elements[i]);
                   j++;
                }
            }  
        }
 
The problem occur at statement to assign Telerik.Web.UI.Spell.HtmlElementTextSource to sources array for performing multiple control spell check.

may i know what have i missed out that cause namespace Telerik.Web.UI.Spell is not registered ?

Thanks you

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 29 May 2008, 12:21 PM
Hi Kok,

Please review the following help article that shows how to spell-check multiple text areas:
http://www.telerik.com/help/aspnet-ajax/spell_howtomutlipletextareas.html

In addition, you can review the online example:
http://www.telerik.com/demos/aspnet/prometheus/Spell/Examples/MultipleChecks/DefaultCS.aspx

I hope this helps.

Best wishes,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Spell
Asked by
Kok Soon
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or