how to reorder the index column after deleting from the table ?
how to reorder the index column after deleting from the table ?
kailasapu
Posts: 7Questions: 0Answers: 0
oTable=$('#myTable').dataTable( {
"fnDrawCallback": fnOpenClose,
"aaSorting": [[ 1, 'asc' ]],
"bSortClasses": false,
"sDom": '<"top"f>rt<"bottom"ilp><"clear">',
columns: ['', 'No'],
"aoColumnDefs": [
{ 'bSortable': false, 'aTargets': [ 0 ] }
]} );
function fnOpenClose( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
for ( var i=0, iLen=oSettings.aiDisplay.length ; i
"fnDrawCallback": fnOpenClose,
"aaSorting": [[ 1, 'asc' ]],
"bSortClasses": false,
"sDom": '<"top"f>rt<"bottom"ilp><"clear">',
columns: ['', 'No'],
"aoColumnDefs": [
{ 'bSortable': false, 'aTargets': [ 0 ] }
]} );
function fnOpenClose( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
for ( var i=0, iLen=oSettings.aiDisplay.length ; i
This discussion has been closed.