Kendo ui 剑道未捕获类型错误:无法读取属性';表';未定义的

Kendo ui 剑道未捕获类型错误:无法读取属性';表';未定义的,kendo-ui,kendo-grid,kendo-asp.net-mvc,Kendo Ui,Kendo Grid,Kendo Asp.net Mvc,这是我的剑道下拉代码: @(Html.Kendo().DropDownList() .Name("AttributeTypeId") .DataTextField("AttributeTypeName") .DataValueField("AttributeTypeId") .DataSource(source =>

这是我的剑道下拉代码:

@(Html.Kendo().DropDownList()
                  .Name("AttributeTypeId")
                  .DataTextField("AttributeTypeName")
                  .DataValueField("AttributeTypeId")
                   .DataSource(source =>
                   {
                       source.Read(read =>
                       {
                           read.Action("my_method", "my_controller");
                       });
                   })
                )
这是我的剧本:

<script>
      $(document.body).keydown(function (e) {
          if (e.altKey && e.keyCode == 87) {
              $("\\#AttributeTypeId").data("kendoGrid").table.focus();
          }
        });
 </script>

任何帮助都将不胜感激。谢谢。

应该是
.data(“kendoDropDownList”)
?是的,这解决了我的错误。
Uncaught TypeError: Cannot read property 'table' of undefined