jquery - UnCaught TypeError $(...).kendoGrid is not a function -
earlier on , many days before today, have never gotten error, getting data returned, won't show data because of error
uncaught typeerror $(...).kendogrid not function
my grid this..
function showadministratorsgrid(administratordata) { $("#admingrid").kendogrid({ datasource: { data: administratordata }, columns: [{ field: "administratorid", title: "administratorid", hidden: true }, { field: "administratorname", title: "administratorname" }, { field: "datecreated", title: "datecreated" }, { field: "createdby", title: "createdby" }], scrollable: true, sortable: true, pageable: false, selectable: "row", change: function (e) { onrowselectforadministrator(); }, height: 275 }); }
and populating this..
function showadministratorsinformation() { $.ajax({ type: "get", url: addurlparam.addgetadmininformationurl, datatype: "json", contenttype: "application/json; charset=utf-8", success: function (data, textstatus, jqxhr) { showadministratorsgrid(data); } }) }
but have mentioned working until earlier , have no idea why error being thrown. have looked around error pertaining kendogrid no avail.
so until hour or 2 ago worked.
documented solution: problem documented. says:
widgets unavailable or undefined:
if jquery included more once in page all existing jquery plugins (including kendo ui) wiped out. occur if required kendo javascript files not included.
depending on browser, following javascript errors thrown:
typeerror: object #<object> has no method kendogrid (in google chrome) typeerror: $("#grid").kendogrid not function (in firefox) object not support property or method 'kendogrid' (in internet explorer 9 , later) object not support property or method (in older versions of internet explorer)
solution:
make sure jquery not included more once in page. remove duplicate script references jquery. include required kendo javascript files.
jquery unavailable or undefined:
if jquery not included, or included after kendo ui javascript files, or included after kendo ui widget initialization statements, kendo ui widgets not function expected. following javascript errors thrown (depending on browser):
referenceerror: jquery not defined (in google chrome , firefox) 'jquery' undefined (in internet explorer)
solution:
make sure jquery included before kendo ui javascript files , before javascript statements depend on it.
Comments
Post a Comment