I have seen several posts on this but I haven't found a solution.
My grid has a custom command that points to a javascript function:
Clicking the custom command button does nothing.
Help?
My grid has a custom command that points to a javascript function:
$(
"#history_grid"
).kendoGrid({
columns: [
{ field:
"type"
, title:
"Document Type"
},
{ field:
"entity"
, title:
"To/From"
},
{ field:
"date_received"
, title:
"Date Sent/Received"
},
{ field:
"path"
, title:
" "
, template:
'<a href="${ path }">Link to file</a>'
, width:
"80px"
},
{ command: { name:
"ViewFile"
, text:
"ViewFile"
, click: viewDoc }, title:
" "
, width:
"100px"
}
],
scrollable:
true
,
autobind:
false
,
dataSource: history_datasource
});
function
viewDoc(e) {
e.preventDefault();
alert("Hello, world!");
};
Clicking the custom command button does nothing.
Help?