Passing multiple values from datatable to controller in render function.
Passing multiple values from datatable to controller in render function.
"data": "studentid"
"render": function (data) {
return `<a href="/StudentData/upsert?studentid=${data}" onclick="GetStudentData(data); return false;">
}
how do i pass multiple values in the above example?
This discussion has been closed.
Answers
columns.rendermodifies the column's data to be something else, in your case a link. Why do you need to returnfalse? It just needs the link. You might want to only return that link for typedisplay, and just return the data for the other types. See examples in the link at the start of my reply.Colin