With the DataTables plugin and while using pagination only the visible items exist in the DOM [1]. So when you initialize the colorbox, this works only for the first 10 rows in your table.
You need to initialize again the colorbox each time you go to the next or previous page. I checked a bit the DataTables page but I didn't find a callback event for when the page changes. As an alternative I thought to use the fnRowCallback
callback to initialize the colorbox for every row.
EDIT: So, the initialization of the table#sample_1
would be:
$('#sample_1').dataTable({
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page",
"oPaginate": {
"sPrevious": "Prev",
"sNext": "Next"
}
},
"aoColumnDefs": [{
'bSortable': false,
'aTargets': [0]
}],
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
jQuery(nRow).colorbox({ inline: true, width: "50%" });
}
});