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

Grid Sample

7 Answers 285 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rhys
Top achievements
Rank 1
Rhys asked on 18 Aug 2011, 02:06 AM
Hi,

Trying to get the basic Grid sample to work.  Getting the following errors...

SCRIPT5007: Object expected
kendo.all.min.js, line 1 character 13464
SCRIPT438: Object doesn't support property or method 'kendoGrid'
index.html, line 19 character 2

Here is my HTML - any help is appreciated as I'm sure it is a basic, newbie mistake.

<html>
<head>
    <title>Test Kendo</title>
    <!--In the header of your page, paste the following for Kendo styles-->
    <link href="../js/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="../js/kendo.kendo.min.css" rel="stylesheet" type="text/css" />
    <!--Then paste the following for Kendo scripts -->
    <script type="text/javascript" src="jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="js/kendo.all.min.js"></script>
</head>
<body>
    <div id="grid">
    </div>
    <script type="text/javascript">
        $("#grid").kendoGrid({ columns: [{ field: "FirstName", title: "First Name" }, { field: "LastName", title: "Last Name"}], dataSource: { data: [{ FirstName: "Joe", LastName: "Smith" }, { FirstName: "Jane", LastName: "Smith"}]} });
    </script>
</body>
</html>
 

7 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 18 Aug 2011, 12:02 PM
Hi Rhys,

You are using a very old jQuery version. Kendo UI has been developed together with jQuery 1.6.2. Please try with this version.

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jeremiah
Top achievements
Rank 1
answered on 12 Jun 2012, 05:47 PM
I have the same issue although all my scripts are up to date. I have jquery.min.js (1.7.1) and kendo.all.min.js included in my _layout, but still getting issues.
0
Phil
Top achievements
Rank 2
answered on 13 Jun 2012, 01:43 AM
Hi:
Have you ever gotten any extension methods to work?  Or is this the first?
Phil
0
Joshua
Top achievements
Rank 1
answered on 23 Jun 2012, 11:27 PM
I have the same problem and I am using MVC4 with 1.6.2 jquery
This is my first attempt
0
Phil
Top achievements
Rank 2
answered on 25 Jun 2012, 01:34 AM
0
Joshua
Top achievements
Rank 1
answered on 25 Jun 2012, 01:45 AM
I got it to work.
I was using it in the new MVC4 project template and I was able to get it into their new "bundles" class working just fine.

Perhaps some instructions to others on how to integrate it into the MVC4 template.
0
Jeremiah
Top achievements
Rank 1
answered on 25 Jun 2012, 12:07 PM
I managed to get mine to work as well. At the time I had telerik extensions implemented as well and once I had removed them all the kendo extensions began to work.
Tags
General Discussions
Asked by
Rhys
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jeremiah
Top achievements
Rank 1
Phil
Top achievements
Rank 2
Joshua
Top achievements
Rank 1
Share this question
or