Passing multiple values from datatable to controller in render function.

Passing multiple values from datatable to controller in render function.

lrobinsonjrlrobinsonjr Posts: 2Questions: 2Answers: 0

"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?

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    columns.render modifies the column's data to be something else, in your case a link. Why do you need to return false? It just needs the link. You might want to only return that link for type display, and just return the data for the other types. See examples in the link at the start of my reply.

    Colin

This discussion has been closed.