Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var oTable = $('#data').dataTable({
- "bJQueryUI": true,
- "bProcessing": true,
- "bServerSide": true,
- "bSort": false,
- "sAjaxSource": "query.php",
- "sPaginationType": "full_numbers",
- "aoColumns": [
- null,
- null,
- null,
- ],
- "fnRowCallback": function (nRow, aData, iDisplayIndex) {
- $(nRow).attr("id", aData[4]);
- return nRow;
- },
- "fnDrawCallback": function( oSettings ) {
- // How do I call fnRowCallback here?
- // losing post processing because it is not being called after a redraw
- }
- });
- <tr>
- <td>a</td>
- <td class="boldmetight">b</td>
- </tr>
- <tr>
- <td class="boldmetight">c</td>
- <td>d</td>
- </tr>.. etc
- var otable = $("#datatable").dataTable({
- "fnRowCallback": function(nRow, aData, iDisplayIndex) {
- $('.boldmetight', nRow).html('<b>' + $('.boldmetight', nRow).text() + '</b>');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement