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

I am using RadControls for ASP.NET Ajax Q2 2010 NET 35 (2010.2.826.35)
I have set the radNumericTextbox ReadOnlyStyle as
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" DataType="System.Int32" MaxValue="5000" MinValue="0" SelectionOnFocus="None" Skin="Sunset" Width="50px" Enabled="false"> <DisabledStyle BackColor="#EEEEEE" /> <ReadOnlyStyle BackColor="#EEEEEE" /> <EnabledStyle HorizontalAlign="Center" /> <NumberFormat DecimalDigits="0" /> </telerik:RadNumericTextBox>function EnableRadNumericTextBox1(enable) { var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control; if (enable) { RadNumericTextBox1.enable(); RadNumericTextBox1._textBoxElement.readOnly = false; } else { RadNumericTextBox1.clear(); RadNumericTextBox1.disable(); }
<telerik:AjaxSetting AjaxControlID="rgdMyGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgdMyGrid" /> </UpdatedControls></telerik:AjaxSetting>Public Class AddressBook
Public Property OwnerName As String
Public Property Friends As IList(Of Contact) Public Property Family As IList(Of Contact) Public Property Colleagues As IList(Of Contact)End ClassPublic Class Contact Public Property Address As Address Public Property Name As String Public Property Phone As String Public Property DateOfBirth As Date Public ReadOnly Property Age As Integer Get Return Math.Floor((Date.Now - DateOfBirth).Days / 365) End Get End PropertyEnd ClassPublic Class Address Public Property StreetNumber As Integer Public Property StreetName As String Public Property ZipCode As StringEnd Class