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

'Object has no method' Error

4 Answers 166 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 09 Mar 2012, 02:52 AM
Hi Everyone,

I just started using Kendo, and got a Grid and Menu set up OK, but when I try to use the ListView, I get the following error:

Object [object Object] has no method 'kendoListView'

The error occurs when the .js is first executing, so I'm not really doing anything yet, so I'm confused as to why this might be occuring.
Maybe there is something wrong in the build I have??
I'm new to this, so I'm not sure what else would be helpful to provide.
Thanks!

Code:
$("#listView").kendoListView({
 template: "<li>${FirstName}</li>",
 dataSource: {
 data: [
 {
 FirstName: "Joe",
 LastName: "Smith"
 },
 {
 FirstName: "Jane",
 LastName: "Smith"
 }]
 }
});

Trace:
Uncaught TypeError: Object [object Object] has no method 'kendoListView'
beginApp             app.js:69
$.ajax.success                                       IBE.js:170
jQuery.Callbacks.fire jquery.js:1049
jQuery.Callbacks.self.fireWith jquery.js:1167
done jquery.js:7408
jQuery.ajaxTransport.send.callback jquery.js:8192

OS: Windows 7
Browser: Chrome 17.0.963.78 m
Kendo UI v2011.3.1129 
jQuery JavaScript Library v1.7.1 

4 Answers, 1 is accepted

Sort by
0
Yuan
Top achievements
Rank 1
answered on 25 Mar 2012, 10:44 AM
I got the same problem.
0
Greg
Top achievements
Rank 1
answered on 27 Mar 2012, 01:18 AM
The ListView object was not in the version I was on(2011.3). If you get the most recent set of code, you won't get the error. I think they just brought it out of beta last week.
0
DINHDUY
Top achievements
Rank 1
answered on 29 Mar 2012, 04:32 PM
I am getting same error with Kendo UI Complete v2012.1.322.
0
Dathan
Top achievements
Rank 1
answered on 08 Oct 2012, 08:03 PM
I have the same error. Please help.
Tags
ListView
Asked by
Greg
Top achievements
Rank 1
Answers by
Yuan
Top achievements
Rank 1
Greg
Top achievements
Rank 1
DINHDUY
Top achievements
Rank 1
Dathan
Top achievements
Rank 1
Share this question
or