это мой выпадающий код кендо:
@(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>
я получаю эту ошибку.
Uncaught TypeError: Cannot read property 'table' of undefined
любая помощь будет оценено. спасибо.