bDeferRender with fnDrawCallback : Column Count
bDeferRender with fnDrawCallback : Column Count
I am using Scroller 1.1.0 and DataTables 1.9.4 and trying to add a column index to the second column in my table.
The code below works ONLY for the first so many rows (250 - 350 on average), then the first row it puts the total row count. In my case that is 670. so my numbering goes( 670,2,3,4,... up to 350 then blank after that)
I assume that is because "bDeferRender": true doesn't load all of the rows into the DOM so there is nothing to count.
If I sort the table after loading the numbering will update to then be correct.
Is there any way to make this work without setting "bDeferRender" to false?
[code]
"fnDrawCallback": function ( oSettings ) {
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered ) {
for ( var i=0, iLen=oSettings.aiDisplay.length ; i
The code below works ONLY for the first so many rows (250 - 350 on average), then the first row it puts the total row count. In my case that is 670. so my numbering goes( 670,2,3,4,... up to 350 then blank after that)
I assume that is because "bDeferRender": true doesn't load all of the rows into the DOM so there is nothing to count.
If I sort the table after loading the numbering will update to then be correct.
Is there any way to make this work without setting "bDeferRender" to false?
[code]
"fnDrawCallback": function ( 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.