我已经在我的 asp.net mvc5 Web 应用程序中安装了 Grid.MVC http://gridmvc.codeplex.com/ 。但是现在当我单击列旁边的过滤器图标时,我会得到以下异常:-
> Unhandled exception at line 1, column 2416 in
> http://localhost:55951/Scripts/gridmvc.min.js
>
> 0x800a01b6 - JavaScript runtime error: Object doesn't support property
> or method 'hasAttribute'
这是将在 gridmvc.min.js 文件中引发异常的代码:-
function(t,i){var o=n(this).attr("data-type")||"",r=t.getFilterWidgetForType(o),u,h,e,c;if(r==null)return!1;if(this.hasAttribute("data-rendered"))return u=t.openMenuOnClick.call(this,t
那么任何人都可以对此提出建议吗?
编辑
我评论了导致脚本文件中错误的代码,
//if (this.hasAttribute("data-rendered")) {
// var or = self.openMenuOnClick.call(this, self);
// self.setupPopupInitialPosition($(this));
// if (!or && typeof (widget.onShow) != 'undefined')
// widget.onShow();
// return or;
// }
现在将显示过滤器框,但是如果我在类型下拉列表中选择任何内容,则相同的过滤器框将显示如下:-
谢谢