Is it possible to place Edit and Delete buttons in jQuery DataTables?
I just remove the mData
attribute in aoColumns
property
in dataTable Script.
$(function () {
$("#tblAdminUsers").dataTable({
bProcessing: true,
sAjaxSource: '@Url.Action("LoadPhoneNumbers", "Admin")',
aoColumns: [
{ bSortable: false, },
{ bSortable: false, },
{
bSortable: false,
mRender: function (o) { return '<i class="ui-tooltip fa fa-pencil" style="font-size: 22px;" data-original-title="Edit"></i><i class="ui-tooltip fa fa-trash-o" style="font-size: 22px;" data-original-title="Delete"></i>'; }
}
]
});});
just follow this url:http://editor.datatables.net/examples/styling/envelopeInTable.html. This will solve your concern.