I have the following simple code which is the content of a Kendo Window:
the SelectNSD function is never called when I click on the custom command. What is wrong with my code?
Thanks,
<div id=
"nsdGird"
></div>
<script>
var
model = @Html.Raw(Json.Encode(Model));
var
grid = $(
'#nsdGird'
).kendoGrid({
dataSource: model,
pageable:
true
,
sortable:
true
,
scrollable:
false
,
selectable:
true
,
columns: [ {
field:
"Name"
,
width:
'150px'
,
title:
"NOTAM Name"
} , {
field:
"Description"
,
} , {
command: {
text:
"SelectNSD"
,
click: SelectNSD,
name:
"Select-NSD"
},
title:
"Select"
,
width:
'100px'
} ]
}).data(
"kendoGrid"
);
var
SelectNSD =
function
(e) {
alert(
"Called"
);
console.log(e);
}
</script>
the SelectNSD function is never called when I click on the custom command. What is wrong with my code?
Thanks,