Kendo Grid导出为ex​​cel时出错“无法读取未定义的属性'长度'在jQuery.js文件中 [英] Error in Kendo Grid Export to excel "cannot read property 'length' of undefined" in jQuery.js file

查看:88
本文介绍了Kendo Grid导出为ex​​cel时出错“无法读取未定义的属性'长度'在jQuery.js文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将kendo网格导出为ex​​cel,然后我在控制台中出错。如果有人知道,请帮帮我。谢谢你。

I am trying to export kendo grid to excel, Then I am having error in console. Please help me if anyone knows about it.Thanks in Advance.

angular.js:13920 TypeError: Cannot read property 'length' of undefined
    at Function.map (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:461:18)
    at init.toDataURL (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:19702)
    at init.<anonymous> (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:27764)
    at Object.proxy (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:513:14)
    at Object.<anonymous> (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3230:33)
    at fire (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3073:30)
    at Object.fireWith [as resolveWith] (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3185:7)
    at Object.deferred.(anonymous function) [as resolve] (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:3275:34)
    at init.<anonymous> (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:22489)
    at Object.proxy (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:513:14)

这是我的Bower.json文件代码:

and this is my Bower.json file code:

"dependencies": {
    "font-awesome": "4.6.3",
    "angular": "1.5.8",
    "json-formatter": "0.6.0",
    "angular-route": "1.5.8",
    "angular-local-storage": "0.5.2",
    "angular-cookies": "1.5.8",
    "angular-sanitize": "1.5.8",
    "angular-animate": "1.5.8",
    "bootstrap": "3.3.7",
    "angular-bootstrap": "2.2.0",
    "toastr": "2.1.3",
    "moment": "2.15.1",
    "angular-translate": "2.11.0",
    "angular-gridster": "0.13.15",
    "angular-loading-bar": "0.9.0",
    "angular-i18n": "1.5.8",
    "angular-translate-loader-static-files": "2.12.1",
    "jszip": "^2.4.0",
    "kendo-ui": "https://schmidt%40cargoclix.com:cargoclix@bower.telerik.com/bower-kendo-ui.git#^2016.3.1007",
    "json-human": "0.1.1",
    "angular-base64-upload": "0.1.19",
    "ngclipboard": "^1.1.1",
    "angular-hotkeys": "chieffancypants/angular-hotkeys#^1.7.0",
    "underscore": "1.8.3"
  },
  "resolutions": {
    "angular": "^1.4.4",
    "angular-translate": "~2.12.1"
  },
  "devDependencies": {
    "jasmine-core": "^2.4.1",
    "jasmine-ajax": "^3.2.0",
    "angular-mocks": "^1.5.6"
  },
  "overrides": {
    "angular": {
      "dependencies": {
        "jquery": ">=1.9.1 <=2.1.1"
      }
    }
  }
}

等待出色的解决方案。谢谢

Waiting for great solution.Thanks

推荐答案

你使用的是什么jQuery版本?当我将jQuery更新到2.2.4或更高版本时,我遇到了类似的问题。

What jQuery version are you using? I had similar problems and worked when I updated jQuery to version 2.2.4 or above.

这篇关于Kendo Grid导出为ex​​cel时出错“无法读取未定义的属性'长度'在jQuery.js文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆