I try to check spelling text at several radtexteditors before data is saved, and I don't want to user to click "spell" button. Instead, I put it at link button
OnClientClick
="StartCheck()"
and a javescript:
function StartCheck() {
var spell = $find('<%=FormViewComment.FindControl("RadSpell10").ClientID %>');
spell.startSpellCheck();
return false
}
which is inside a RadCodeBlock.
Spelling control is like this:
<telerik:RadSpell ID="RadSpell10" Runat="server" Skin="Vista" ControlsToCheck='<%# new string[3] {FormViewComment.FindControl("RadTextBoxOpportunities").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID}%>'
IsClientID="true" SupportedLanguages="en-US,English" ButtonType="none" />
All three textbox are inside a FormView Control, and it is inside an asp customer control.
When I click the link button to fire spell check, spell check dialog box does show up, but it pompup a "complete spelling check" message although some text is not spelled correctly, and give me some wired client script error which I don't understand. Please let me know what mistake I made.
Thanks