I have a grid that displays a subset of the entire column set of my model as follows as a result of my search form
$("#kendoResultGrid").kendoGrid({
dataSource: {
data:response
},
scrollable: true,
sortable: true,
columns: [
{ field: "EmpNo", template: "getLink(response)" },
{ field:"EmpName" },
{ field:"EmpMgr" },
{ field:"ClientName" },
{ field: "FrameworkName",hidden:true }
]
});
function getLink(emp) {
var action = '@Url.Action("Index","PMP", new { emp = '+ emp +')';
var empLink = kendo.format("<a href='{0}'>{1}</a>", action, emp.empNo);
return empLink;
}
I want to be able to pass the current row to my Index method on my PMP view and display employee id as a hyperlink. Can you please assist?
$("#kendoResultGrid").kendoGrid({
dataSource: {
data:response
},
scrollable: true,
sortable: true,
columns: [
{ field: "EmpNo", template: "getLink(response)" },
{ field:"EmpName" },
{ field:"EmpMgr" },
{ field:"ClientName" },
{ field: "FrameworkName",hidden:true }
]
});
function getLink(emp) {
var action = '@Url.Action("Index","PMP", new { emp = '+ emp +')';
var empLink = kendo.format("<a href='{0}'>{1}</a>", action, emp.empNo);
return empLink;
}
I want to be able to pass the current row to my Index method on my PMP view and display employee id as a hyperlink. Can you please assist?