0

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;
      //  }

そして、フィルターボックスが表示されますが、タイプドロップダウン内で何かを選択すると、同じフィルターボックスが次のように表示されます:-

ここに画像の説明を入力

ありがとう

4

1 に答える 1