我最近升级了jQuery和Kendo UI版本,现在使用的是jQuery 1.12.13和Kendo UI 2016.3.914(不确定对应其公共网站的哪个版本,但可能在R3 2016左右)。
似乎kendo或jQuery对数据格式更加严格了。 我有一个带有type:“json”
的数据源的kendo UI Grid。 这在早期版本中有效,但现在不再有效 - 它会发出以下警告:
Unknown DataSource transport type 'json'. Verify that registration scripts for this type are included after Kendo UI on the page.
于是我查看了文档,并将类型更改为odata
。
这样会出现错误:
VM94003:3 Uncaught TypeError:Cannot read property '__count' of undefined
像Kendo UI一样,这个错误消息并没有告诉你太多信息。 那么问题出在哪里呢?