Processing: Use two or more columns.data in columns.render
Processing: Use two or more columns.data in columns.render
I need to insert 2 different data from JSON into one Column.
I've googled for hours, without success...
A Part of my Code:
{
"data": {
"_": "auftragID",
"bool": "besitztAuftragDateianhaenge" },
"name": "Aktionen",
"autoWidth": false,
"render": function (data, type, row, meta) {
return '<a class="mgmicon blue" href="' + 'Auftrag/AuftragsAnsicht/' + data + data.bool + '" data-toggle="tooltip" data-placement="top" title="@Localization["ManagementTools_Button_View_Title"]"><i class="material-icons" alt=""></i></a>';
}
},```
The generated HREF Link looks like:
How can i reference the second columns.data, so its not "undefined"?
Thanks
Replies
See if this example helps. Use the
row
parameter ofcolumns.render
to access the other elements in the row. Also see the examples in thecolumns.render
docs.Kevin