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

Can't call any Kendo UI methods

2 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Conor
Top achievements
Rank 1
Conor asked on 28 Mar 2012, 07:34 PM
Hi I am experiencing some major issues in trying to call Kendo UI methods. My Chrome browser is returning errors such as the following: 

Uncaught TypeError: Cannot call method 'enable' of undefined
Uncaught TypeError: Cannot read property 'confirmation' of undefined

etc.

I have tried calling methods on the Kendo grid and the Dropdown and am experiencing the same issue. The methods simply don't seem to exist or else the UI elements are not visible?


2 Answers, 1 is accepted

Sort by
0
Conor
Top achievements
Rank 1
answered on 28 Mar 2012, 07:36 PM
Also, just for the record, here is an example of the code I am using:

$(".isotope .dropdown").data("kendoDropDownList").enable(true);

and 

var grid = $(".grid").data("kendoGrid");
// remove first table row
grid.removeRow(grid.tbody.find(">tr:first"));

I am essentially copying the examples but it just isn't working at all. Any help would be appreciated.
0
Conor
Top achievements
Rank 1
answered on 31 Mar 2012, 02:10 PM
No need to reply, don't think I was going to get one anyway :)

I've scrapped the initial installation, downloaded a fresh zip file and started from scratch and that seems to have fixed it.
Tags
General Discussions
Asked by
Conor
Top achievements
Rank 1
Answers by
Conor
Top achievements
Rank 1
Share this question
or