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

How to Spell Check Detailview Text Box

0 Answers 30 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 21 May 2010, 05:04 PM

 

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"/>   
 

 

 

No answers yet. Maybe you can help?

Tags
Spell
Asked by
Tim
Top achievements
Rank 1
Share this question
or