[eluser]ninjayan[/eluser]
[quote author="cryogenix" date="1299569982"][quote author="Pegasus275" date="1299088827"]How to use it with action column for example edit/delete etc.
<tr>
<td> id from db</td>
<td> name from db </td>
<td> <a href="edit....">Edit</a>
</tr>[/quote]
you can use petroz's client side solution to create additional columns:
[quote author="petroz" date="1299116938"]I use a callback on the Datatables.net configuration to generate the table on the fly. Add `fnDrawCallback` to attach any javascript function/method to the generation process.
Here is one for adding columns.
Datatables.prototype.addDataColumn = function()
{
$("#datatable tr:gt(0)").append("<td><a href=''>View</a> <a href=''>Edit</a> <a href=''>Delete</a></td>");
}[/quote]
or you can also modify the library where I commented:
Code:
/*
add additional columns here
like adding a Delete Row control for example:
$aaData[$row_key][] = '<a href="#">Delete Button</a>';
*/
[/quote]
Can't find this commented lines.