How to Spell Check Detailview Text Box

1 posts, 0 answers
  1. Tim
    Tim avatar
    3 posts
    Member since:
    Jul 2008

    Posted 21 May 2010 Link to this post

     

    Here's how to spell check a textbox in a Detailview:

    <script type="text/javascript">   
       
    function startSpell() {   
     var sources = document.getElementById('<%=DetailsView1.FindControl("CommentTextBox").ClientID %>');   
       
    var spell = $find("<%=RadSpell1.ClientID%>");   
       
    spell.set_textSource(new Telerik.Web.UI.Spell.HtmlElementTextSource(sources));   
     
    spell.startSpellCheck();  
     
    }   
    </script>   
     
    <telerik:RadSpell ID="RadSpell1" Runat="server" ControlToCheck="DetailsView1"   
     ButtonType="None" Height="28px" />   
       
    <input type="button" onclick="startSpell();" value="Check all"/>   
     

     

     

Back to Top