I've searched a lot on the internet but I can't find a way to do this. I'm using Jquery datatables:
var oTable = $('#boardTable2').DataTable({
"ajax": {
"url": '/Boards/GetBoards',
"type": "get",
"datatype": "json",
"dataSrc": function(json) {
return json;
}
},
"columns": [
{ "data": "Name" },
{ "data": "Description" },
{ "data": "StartDate" },
{ "data": "EndDate" }
]
});
But I want another custom column like this:
<div class="btn-group">
<button class="btn btn-sm dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-wrench"></i> <span class="caret"></span>
</button>
<ul class="dropdown-menu fa-pull-right">
<li>
<a href="@Url.Action("Edit", new { id = item.ID })">
<i class="fa fa-pencil"></i> Edit
</a>
</li>
<li>
<a id="DeleteBoard" data_number="@item.ID">
<i class="fa fa-trash"></i> Delete
</a>
</li>
<li>
<a href="@Url.Action("Details", new { Id = item.ID })">
<i class="fa fa-info-circle"></i> Details
</a>
</li>
</ul>
</div>
Actually, this exact code to be another row. How do I do that? Any suggestions? Maybe I missed a similar question? I'm just completely lost so I would be thankful with any type of help.
