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

Microsoft JScript runtime error: Incorrect function.

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bharat veer
Top achievements
Rank 1
bharat veer asked on 02 Jun 2011, 03:17 PM
i have a radtextbox

 <telerik:RadTextBox ID="rtbItemDescription" runat="server" TabIndex="1050"
                                            MaxLength="<%$ Resources:ItemResources,rtbItemDescriptionMaxLength %>"
                                            Width="<%$ Resources:ItemResources,rtbItemDescriptionWidth %>"  
                                            TextMode="MultiLine" Rows="<%$ Resources:ItemResources,rtbItemDescriptionRows %>"                                        
                                             ontextchanged="rtbItemDescription_TextChanged" >
                                        </telerik:RadTextBox>


from resource  file rtbItemDescriptionMaxLength ="160"
                             rtbItemDescriptionWidth ="150"
                            rtbItemDescriptionRows="3"
when i save data by clicking radbutton
control goes to this line in javascript file
b._textBoxElement.select(); error occurs "microsoft javascript error invalid function"

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 06 Jun 2011, 08:20 AM
Hello Bharat Veer,

I have tried to reproduce the issue using the code bellow along with RadControls Q1 2011 SP2 (2011.1.519), but without success. Could you please verify the exact version of RadControls that you are using?

<%@ Page Language="C#" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
</head>
<body>
    <form id="mainForm" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
    <script type="text/C#" runat="server">
        protected void rtbItemDescription_TextChanged(object sender, EventArgs e)
        {
            Label1.Text = rtbItemDescription.Text;
        }
    </script>
    <telerik:RadTextBox ID="rtbItemDescription" runat="server" TabIndex="1050" MaxLength="160"
        Width="150" TextMode="MultiLine" Rows="3" OnTextChanged="rtbItemDescription_TextChanged">
    </telerik:RadTextBox><br />
    <asp:Label Text="" ID="Label1" runat="server" />
    <telerik:RadButton runat="server" ID="RadButton1" Text="RadButton1">
    </telerik:RadButton>
    </form>
</body>
</html>


Regards,
Martin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or