Hi
I have based the following code on Grid / Custom command
https://demos.telerik.com/aspnet-mvc/grid/custom-command
@(Html.Kendo().Grid<MyProject.Models.Profiles>().
Name(
"MyTable"
).
Columns(columns =>
{
columns.Command(command => {
command.Custom(
"Edit Details"
).Click(
"EditDetails"
);
}).Width(120);
})
.HtmlAttributes(
new
{ style =
"height: 600px"
})
.BindTo(Model)
.Scrollable()
.Groupable()
.Sortable()
.Filterable()
)
<script>
function
EditDetails(e) {
e.preventDefault();
}
</script>
When I run the code I get the following error in the Developer Console(Edge & Chrome)
Uncaught ReferenceError: EditDetails is not defined
I have been unable to find the problem, any suggestions?
Is there a way that i can call a controller method without going through javascript?
Thanks