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

'Telerik' is undefined

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 15 Sep 2009, 10:31 AM
I have read through this help thread and all links within it:  http://www.telerik.com/community/forums/aspnet-ajax/scheduler/104775-telerik-is-undefined.aspx

I have a page where I am getting 'Telerik' is undefined, this only happens when the page isn't cached though, so I am deleteing my cache to replicate the problem in order to try and fix it.  We are using version 2008.3.1125.35 controls. This is happening in both my local dev environment and our web server so I am pretty sure it isn't OS related, however I am on XP 32bit running VS2008.

Once the page has cached I don't get any problem at all and everything worksperfectly.  If I clear the cache I get the error and the update panel I have on the page fails to update correctly. 
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
                        <contentTemplate> 
                            <asp:Button ID="btnAddToList" runat="server" Text="Add to list"  
                                Visible="False" /> 
                            <asp:Button ID="btnClearList" runat="server" Text="Clear List"  
                                Visible="False" /> 
                            <table width="100%"
                                <tr> 
                                    <td valign="top" width="25%"
                                        <asp:RadioButtonList ID="rbnPickDetails" runat="server" AutoPostBack="True"
                                        </asp:RadioButtonList> 
                                        <asp:Label ID="lblSelectFromRadio" runat="server" Text="Select the contact you wish to merge all other contacts with and then click on 'Merge Contacts' button to proceed. " visible="false"></asp:Label> 
                                    </td> 
                                    <td valign="top" width="75%"
                                        <asp:Label ID="lblContactDetails" runat="server"></asp:Label> 
                                        <br /> 
                                        <asp:Button ID="btnViewContactDetails" runat="server"  
                                            Text="View Contact Details" Visible="False" /> 
                                        <asp:Button ID="btnMergeContacts" runat="server" Text="Merge Contacts"  
                                            Visible="False" /> 
                                        <br /> 
                                        <asp:Label ID="lblWarning" runat="server" ForeColor="Red"  
                                            Text="You must select more than one contact to be able to merge."  
                                            Visible="False"></asp:Label> 
                                    </td> 
                                </tr> 
                            </table> 
                         </contentTemplate> 
                        <triggers> 
                        <asp:AsyncPostBackTrigger ControlID="rbnPickDetails" EventName="SelectedIndexChanged" /> 
                        </triggers> 
                    </asp:UpdatePanel> 

Protected Sub btnAddToList_Click(ByVal sender As ObjectByVal e As EventArgs) Handles btnAddToList.Click 
        For Each row As GridDataItem In uwgDuplicates.MasterTableView.Items 
            If row.Selected Then 
                If rbnContactType.SelectedValue = "investigators" Then 
                    If IsNothing(rbnPickDetails.Items.FindByValue(row.Item("PersonnelID").Text)) Then 
                        rbnPickDetails.Items.Add(New ListItem(row.Item("ContactName").Text, row.Item("PersonnelID").Text)) 
                    End If 
                ElseIf rbnContactType.SelectedValue = "funders" Then 
                    If IsNothing(rbnPickDetails.Items.FindByValue(row.Item("ContactID").Text)) Then 
                        rbnPickDetails.Items.Add(New ListItem(row.Item("ContactName").Text, row.Item("ContactID").Text)) 
                    End If 
                End If 
            End If 
        Next 
        If rbnPickDetails.Items.Count > 1 Then 
            lblWarning.Visible = False 
        Else 
            lblWarning.Visible = True 
        End If 
        lblSelectFromRadio.Visible = True 
    End Sub 

I have trawled through my web config but everything seems to be in order:

<httpHandlers> 
        <remove verb="*" path="*.asmx"/> 
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
      </httpHandlers> 

We aren't using IIS7 but I do have the <Handlers> section also set up.

I am at a loss now, is there anything else that could cause this?

Steve

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 18 Sep 2009, 07:43 AM
Hi Steven,

Do you have any Telerik control on the page? I cannot see it in the code you supplied.

Also, I suggest that you check the troubleshooting steps in this help topic.

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Steven
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or