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

JScript Runtime Error: 'Telerik' is undefined

3 Answers 880 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Grant Fletcher
Top achievements
Rank 1
Grant Fletcher asked on 28 Apr 2010, 05:09 PM
Any ideas: When using a Telerik RadScriptManager on a page the following error occurs: Microsoft JScript Runtime Error: 'Telerik' is undefined.  The error occurs at the "$create" line in the snippet, which is automatically generated (line 4):

<

 

script type="text/javascript">

 

<!--

Sys.Application.initialize();

Sys.Application.add_init(

function() {

 

$create(Telerik.Web.UI.RadAjaxManager, {

"_updatePanels":"","ajaxSettings":[{InitControlID : "myRadGrid",UpdatedControls : [{ControlID:"myRadGrid",PanelID:""}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"myRadAjaxManager","updatePanelsRenderMode":0}, null, null, $get("myRadAjaxManager"));

 

});

Sys.Application.add_init(

function() {

 

$create(Telerik.Web.UI.RadGrid, {

"ClientID":"myRadGrid","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowExpandCollapse":true,"AllowGroupExpandCollapse":true,"ColumnsReorderMethod":0,"ShouldCreateRows":true,"Selecting":{"EnableDragToSelectRows":true},"Scrolling":{"SaveScrollPosition":true,"ScrollHeight":"300px"},"Resizing":{"ClipCellContentOnResize":true},"ClientMessages":{"DragToGroupOrReorder":"Drag to group or reorder","DragToResize":"Drag to resize","DropHereToReorder":"Drop here to reorder","PagerTooltipFormatString":"Page: \u003cb\u003e{0}\u003c/b\u003e out of \u003cb\u003e{1}\u003c/b\u003e pages"}},"Skin":"WebBlue","UniqueID":"myRadGrid","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_gridTableViewsData":"[{\"ClientID\":\"myRadGrid__ctl0\",\"UniqueID\":\"myRadGrid:_ctl0\",\"PageSize\":20,\"PageCount\":1,\"CurrentPageIndex\":0,\"Name\":\"\",\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"SelectedRow_WebBlue\",\"_renderActiveItemStyle\":\"\",\"_renderActiveItemStyleClass\":\"ActiveRow_WebBlue\",\"_columnsData\":[{\"UniqueName\":\"EditCommandColumn\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":false,\"Display\":true},{\"UniqueName\":\"sDescription\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sProgramAssignment\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPersonnelStaffPerson\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPersonnelAnnualSalary\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPersonnelNumberOfWeeksBudgeted\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPersonnelDatesFrom\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPersonnelDatesTo\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sPercentOfTimeBudgeted\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sAdmin\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sProgram\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sNonCsbgSource\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"sNonCsbgCharge\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"column\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":false,\"Display\":true}]}]","_loadingText":"Loading...","_masterClientID":"myRadGrid__ctl0","_popUpIds":"[]","_readyText":"Ready","_statusLabelID":"myRadGrid__ctl0__ctl3__ctl2_StatusLabel","allowMultiRowSelection":false,"clientStateFieldID":"myRadGrid_ClientState"}, {"gridCreated":GridCreated,"rowClick":RowClick,"rowDblClick":RowDblClick}, null, $get("myRadGrid"));

 

});

// -->

</

 

script>

 

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 29 Apr 2010, 05:00 PM
Hello Grant,

This is usually related to a WebResource serving problem. Please check this blog post for troubleshooting tips.

Regards,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jessica
Top achievements
Rank 1
answered on 13 Mar 2014, 11:58 PM
i have the same problem,  0x800a1391 - JScript Runtime Error: 'Telerik' is undefined,  i already checked my web config.
i have this in my web config :
<configuration>
  
  <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <compilation debug="true" targetFramework="4.5">
        <assemblies>
          <add assembly="Telerik.Web.UI, Version=2013.2.717.45, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
        </assemblies>
      </compilation>
      <pages controlRenderingCompatibilityVersion="4.0"/>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  

  <system.webServer>
    <handlers>
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
    </handlers>
  </system.webServer>

  <appSettings>
    <add key="SecurityKey" value="Syed Moshiur Murshed"/>
    <add key="connectionString" value="server=ti02;database=GS_SEG_ACT;user id=usrSigAct;password=usr20145ig"/>
    <add key="provider" value="System.Data.SqlClient"/>
  </appSettings>
</configuration>



0
Bozhidar
Telerik team
answered on 14 Mar 2014, 08:06 AM
Hi,

Please review the following help article for common causes for this problem:
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

If you still receive the error, please send us a support ticket with a sample project that demonstrates the problem, so that we can test it locally.

Regards,
Bozhidar
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
ScriptManager and StyleSheetManager
Asked by
Grant Fletcher
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Jessica
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or