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

Microsoft JScript runtime error: 'Telerik' is undefined

1 Answer 608 Views
Window
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 18 Apr 2008, 03:23 AM
I am evaluating your ASP.NET AJAX Q1 2008 product.  We are hoping to replace our Infragistics controls with controls that are "supported".  Needless to say that I am disappointed in the Telerik product.  The very first thing I try to do results in a script error and server error.  Is this indictive of your product quality?  Further feedback: You installer splash screen looks beautiful but is terrible in practice.  It covers the entire screen (including the Windows Start menu) effectively rendering the computer useless while it expands the files.  Then it creates a full-screen install window that can't be minimized.  Now I know that some graphic designer will be hurt that I don't want to look at his/her art but I really need to use my computer for something else for the 15-20 minutes it takes to get the controls installed.

Because Infragistics is SOOO bad (I have used Infragistics for years now) I am willing to give somebody a real chance here.  I really want Telerik to work for our company.

OK the problem is a runtime error: Microsoft JScript runtime error: 'Telerik' is undefined.

I installed the controls on two computers running VS 2008 on Windows Vista machines SP1.  Both machines give exactly the same error.

I created a new project. I pulled some working code that simply creates a List<myListObject> from an existing SQL database.

In my new project I added the RadGrid by draging it onto the form.  I added the RadScriptManager from the RadGrid SmartTag and then I registered the RadScriptManager using its SmartTag.

In the codebehind I am binding my List to the RadGrid1.Datasource.

When I execute the project in VS 2008 debug mode I get the error shown in the title.

If I choose Continue the screen does show the data pulled from the database. However it does not let me drag columns to group and it gives a server error if I try to page through the data.

Here is the offending line:

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

"AllowMultiRowSelection":false,"ClientID":"RadGrid1","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowDragToGroup":true,"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"}},"ShowGroupPanel":true,"Skin":"Default","UniqueID":"RadGrid1","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_gridTableViewsData":"[{\"ClientID\":\"RadGrid1_ctl00\",\"UniqueID\":\"RadGrid1$ctl00\",\"PageSize\":10,\"PageCount\":7,\"CurrentPageIndex\":0,\"Name\":\"\",\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"SelectedRow_Default\",\"_renderActiveItemStyle\":\"\",\"_renderActiveItemStyleClass\":\"ActiveRow_Default\",\"_columnsData\":[{\"UniqueName\":\"PrimaryUnit\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Name\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Purpose\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"SubSystem\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Alias\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"ExtrnUGrp\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FedRpt\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FailEffect\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FY0708\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Importance\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"UserBase\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"DevMethod\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Status\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FailResult\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Releases\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"EndUsers\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true}]}]","_groupPanelClientID":"RadGrid1_GroupPanel_TB","_groupPanelItems":"[]","_loadingText":"Loading...","_masterClientID":"RadGrid1_ctl00","_popUpIds":"[]","_readyText":"Ready","_statusLabelID":"","clientStateFieldID":"RadGrid1_ClientState"}, null, null, $get("RadGrid1"));

1 Answer, 1 is accepted

Sort by
0
Larry
Top achievements
Rank 1
answered on 19 Apr 2008, 09:06 PM
Support kind of answered the question... refered me to a forum post where someone had posted an answer.

I had searched the forum for the specific error that was reported and it didn't return the post (that I could find anyway.)

If your are using Vista or Server 2008 with IIS 7 the problem is a hander is needed in the web.config file.

In section shown below add the reference shown:
<system.webserver>
   <handlers>
      other stuff is already here...
      <add name="Telerik.Web.UI.WebResource.axd_"  
path
="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />
   </handlers>


Alternately you can use the IIS 7 management tool and edit the site basic properties setting the default pool to "Classic .NET".  I perfer the web.config method.

Tags
Window
Asked by
Larry
Top achievements
Rank 1
Answers by
Larry
Top achievements
Rank 1
Share this question
or